diff --git a/AMW.stp b/AMW.stp
new file mode 100644
index 0000000..ffa074f
--- /dev/null
+++ b/AMW.stp
@@ -0,0 +1,349 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 'emu:emu|coco3fpga:coco3|AMW:coco_AMW|Cycle_Run' == rising edge
+
+
+
+
+
+
+ 11111111111111111111111111111111111111111
+ 11111111111111111111111111111111111111111
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0010000000110010101011110100000011000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001100010101111000000011100001010010000000011000101011110000000111000010100100000001110001010111100000001110000111001000000001100010101111000000011100001110010000000011000101011110000000111000011100100000000110001010111100000001110000111001000000001110010101111000000011100001010010000000011000101011110000000111000010100100000000110001010111100000001110000101001000000001000010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000001101010101111000000011100001010010000000011010101011110000000111000010100100000000110101010111100000001110000101001000000011001010101111000000011100001010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000100011111111110100000111111110100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000000110001010111100000000101000101001000000001100010101111000000001010001010010000000011000101011110000000010100010100100000001110001010111100000000101000111001000000001100010101111000000001010001110010000000011000101011110000000010100011100100000000111001010111100000000101000111001000000001110010101111000000001010001010010000000011000101011110000000010100010100100000000100001010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000001101010101111000000001010001010010000000011010101011110000000010100010100100000000110101010111100000000101000101001000000011001010101111000000001010001010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000011001111101110100000001100110100100000000110011111011101000000011001101001000000001100111110111010000000110011010010000000111001111101110100000001100111100100000000110011111011101000000011001111001000000001110111110111010000000110011110010000000011101111101110100000001100110100100000000110011111011101000000011001101001000000001000111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000000110111111011101000000011001101001000000001101111110111010000000110011010010000000011011111101110100000001100110100100000001100111111011101000000011001101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000001101101101111000000001101011010010000000011011011011110000000011010110100100000000110110110111100000000110101101001000000011101101101111000000001101011110010000000011011011011110000000011010111100100000000111110110111100000000110101111001000000001111101101111000000001101011010010000000011011011011110000000011010110100100000000100110110111100000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000011001011011110100000011010110100100000000110010110111101000000110101101001000000001100101101111010000001101011010010000000111001011011110100000011010111100100000000110010110111101000000110101111001000000001110101101111010000001101011110010000000011101011011110100000011010110100100000000110010110111101000000110101101001000000001000101101111010000001101011010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000000110100000011101000000101000001001000000001101000000111010000001010000010010000000011010000001110100000010100000100100000001110100000011101000000101000011001000000001101000000111010000001010000110010000000011110000001110100000010100001100100000000111100000011101000000101000001001000000001101000000111010000001010000010010000000010010000001110100000010100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000001100000000111000000011010000010010000000011000000001110000000110100000100100000000110000000011100000001101000001001000000011100000000111000000011010000110010000000011000000001110000000110100001100100000000111000000011100000001101000011001000000001110000000111000000011010000010010000000011000000001110000000110100000100100000000100000000011100000001101000001001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000011011011011110100000011010110100100000000110110110111101000000110101101001000000001101101101111010000001101011010010000000111011011011110100000011010111100100000000110110110111101000000110101111001000000001111101101111010000001101011110010000000011111011011110100000011010110100100000000110110110111101000000110101101001000000001001101101111010000001101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000000110010110111100000001110101101001000000001100101101111000000011101011010010000000011001011011110000000111010110100100000001110010110111100000001110101111001000000001100101101111000000011101011110010000000011101011011110000000111010111100100000000111010110111100000001110101101001000000001100101101111000000011101011010010000000010001011011110000000111010110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000000101111111111010000011111111010010000000001011111111110100000111111110100100000000010111111111101000001111111101001000000010001111111111010000011111111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000001011111111110100000110001110100100000000010111111111101000001100011101001000000000101111111111010000011000111010010000000100011111111110100000110001110100100100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110000100000110110110111100000001110101101100001000001101101101111000000011101011011000010000011011011011110000000111010110110010100001110100000011100000000011100010000101000001101000000111000000000111000100001010000011110000001110000000001110001000000100000111110110111100000001110101100000001000001101101101111000000011101011000000010000011011011011110000000111010110000000100000110110110111100000001110101100000001000001101101101111000000011101011000000010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000001101101101111000000011101011000010010000011011011011110000000111010110000100100000110110110111100000001110101100001001000011101101101111000000011101011110010010000011011011011110000000111010111100100100000111110110111100000001110101111001001000001111101101111000000011101011010010010000011011011011110000000111010110100100100000100110110111100000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000011001011011110100000111010110100100100000110010110111101000001110101101001001000001100101101111010000011101011010010010000111001011011110100000111010111100100100000110010110111101000001110101111001001000001110101101111010000011101011110010010000011101011011110100000111010110100100100000110010110111101000001110101101001001000001000101101111010000011101011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100000110011111011100000001011001101001001000001100111110111000000010110011010010010000011001111101110000000101100110100100100001110011111011100000001011001111001001000001100111110111000000010110011110010010000011101111101110000000101100111100100100000111011111011100000001011001101001001000001100111110111000000010110011010010010000010001111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000011001111110111000000010110011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000011000000011110100000000000110100100100000110000000111101000000000001101001001000001100000001111010000000000011010010010000111000000011110100000000000111100100100000110000000111101000000000001111001001000001110000001111010000000000011110010010000011100000011110100000000000110100100100000110000000111101000000000001101001001000001000000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100000110100000111101000000000001101001001000001101000001111010000000000011010010010000011010000011110100000000000110100100100001100100000111101000000000001101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000011010000011110100000011101010100100100000110100000111101000000111010101001001000001101000001111010000001110101010010010000111010000011110100000011101011100100100000110100000111101000000111010111001001000001111000001111010000001110101110010010000011110000011110100000011101010100100100000110100000111101000000111010101001001000001001000001111010000001110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100000110000000111100000001111010101001001000001100000001111000000011110101010010010000011000000011110000000111101010100100100001110000000111100000001111010111001001000001100000001111000000011110101110010010000011100000011110000000111101011100100100000111000000111100000001111010101001001000001100000001111000000011110101010010010000010000000011110000000111101010100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000011010000011110000000111101010100100100000110100000111100000001111010101001001000001101000001111000000011110101010010010000110010000011110000000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100000110000000111101000001111010101001001000001100000001111010000011110101010010010000011000000011110100000111101010100100100001110000000111101000001111010111001001000001100000001111010000011110101110010010000011100000011110100000111101011100100100000111000000111101000001111010101001001000001100000001111010000011110101010010010000010000000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000001101000001111010000011110101010010010000011010000011110100000111101010100100100000110100000111101000001111010101001001000011001000001111010000011110101010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000100011111111110100000111111110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100000110111111011100000001011001101001001000001101111110111000000010110011010010010000011011111101110000000101100110100100100001110111111011100000001011001110001001000001101111110111000000010110011100010010000011111111101110000000101100111000100100000101111111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000001100111110111000000010110011000010010000011001111101110000000101100110000100100000110011111011100000001011001100001001000011100111110111000000010110011100010010000011001111101110000000101100111000100100000111011111011100000001011001110001001000001010111110111000000010110011000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000100011111111110100000111111110000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100000110111010111101000000101111000001001000001101110101111010000001011110000010010000011011101011110100000010111100000100100001110111010111101000000101111011001001000001101110101111010000001011110110010010000011011101011110100000010111101100100100000110111010111101000000101111011001001000001101110101111010000001011110110010010000011011101011110100000010111101100100100000111111010111101000000101111011001001000001111110101111010000001011110010010010000011011101011110100000010111100100100100000100111010111101000000101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000001100110101111000000011011110010010010000011001101011110000000110111100100100100000110011010111100000001101111001001001000011100110101111000000011011110110010010000011001101011110000000110111101100100100000111011010111100000001101111011001001000001110110101111000000011011110010010010000011001101011110000000110111100100100100000100011010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000011011101011110000000110111100100100100000110111010111100000001101111001001001000001101110101111000000011011110010010010000110011101011110000000110111100100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100001000111111111101000001111111101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000001101111110111010000000110011010010010000011011111101110100000001100110100100100000110111111011101000000011001101001001000011101111110111010000000110011100010010000011011111101110100000001100111000100100000111111111011101000000011001110001001000001011111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000011001111101110100000001100110000100100000110011111011101000000011001100001001000001100111110111010000000110011000010010000111001111101110100000001100111000100100000110011111011101000000011001110001001000001110111110111010000000110011100010010000010101111101110100000001100110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100001000111111111101000001111111100001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000001101000101111000000000001110000010010000011010001011110000000000011100000100100000110100010111100000000000111000001001000011101000101111000000000001110110010010000011010001011110000000000011101100100100000111100010111100000000000111011001001000001111000101111000000000001110010010010000011010001011110000000000011100100100100000100100010111100000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000011000001011110100000000011100100100100000110000010111101000000000111001001001000001100000101111010000000001110010010010000111000001011110100000000011101100100100000110000010111101000000000111011001001000001110000101111010000000001110110010010000011100001011110100000000011100100100100000110000010111101000000000111001001001000001000000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100000110100010111101000000000111001001001000001101000101111010000000001110010010010000011010001011110100000000011100100100100001100100010111101000000000111001001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000011010001011110100000010011100100100100000110100010111101000000100111001001001000001101000101111010000001001110010010010000111010001011110100000010011101100100100000110100010111101000000100111011001001000001111000101111010000001001110110010010000011110001011110100000010011100100100100000110100010111101000000100111001001001000001001000101111010000001001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100000110000010111100000001100111001001001000001100000101111000000011001110010010010000011000001011110000000110011100100100100001110000010111100000001100111011001001000001100000101111000000011001110110010010000011100001011110000000110011101100100100000111000010111100000001100111001001001000001100000101111000000011001110010010010000010000001011110000000110011100100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000011011111101110000000001100110100100100000110111111011100000000011001101001001000001101111110111000000000110011010010010000111011111101110000000001100111000100100000110111111011100000000011001110001001000001111111110111000000000110011100010010000010111111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100000110011111011100000000011001100001001000001100111110111000000000110011000010010000011001111101110000000001100110000100100001110011111011100000000011001110001001000001100111110111000000000110011100010010000011101111101110000000001100111000100100000101011111011100000000011001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000001101111110111010000011010011000010010000011011111101110100000110100110000100100000110111111011101000001101001100001001000011101111110111010000011010011100010010000011011111101110100000110100111000100100000111111111011101000001101001110001001000001011111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000011001111101110100000110100110000100100000110011111011101000001101001100001001000001100111110111010000011010011000010010000111001111101110100000110100111000100100000110011111011101000001101001110001001000001110111110111010000011010011100010010000010101111101110100000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100000110111111011100000001101001100001001000001101111110111000000011010011000010010000011011111101110000000110100110000100100001110111111011100000001101001110001001000001101111110111000000011010011100010010000011111111101110000000110100111000100100000101111111011100000001101001100001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000001101000101111000000011001110000010010000011010001011110000000110011100000100100000110100010111100000001100111000001001000011101000101111000000011001110110010010000011010001011110000000110011101100100100000111100010111100000001100111011001001000001111000101111000000011001110010010010000011010001011110000000110011100100100100000100100010111100000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000011000001011110100000110011100100100100000110000010111101000001100111001001001000001100000101111010000011001110010010010000111000001011110100000110011101100100100000110000010111101000001100111011001001000001110000101111010000011001110110010010000011100001011110100000110011100100100100000110000010111101000001100111001001001000001000000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100000110100010111101000001100111001001001000001101000101111010000011001110010010010000011010001011110100000110011100100100100001100100010111101000001100111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000001100000101111000000000101110010010010000011000001011110000000001011100100100100000110000010111100000000010111001001001000011100000101111000000000101110110010010000011000001011110000000001011101100100100000111000010111100000000010111011001001000001110000101111000000000101110010010010000011000001011110000000001011100100100100000100000010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000011010001011110000000001011100100100100000110100010111100000000010111001001001000001101000101111000000000101110010010010000110010001011110000000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001100000101111010000000101110010010010000011000001011110100000001011100100100100001110000010111101000000010111011001001000001100000101111010000000101110110010010000011000001011110100000001011101100100100000110000010111101000000010111011001001000001110000101111010000000101110010010010000011000001011110100000001011100100100100000110000010111101000000010111001001001000001000000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000001101000101111010000000101110010010010000011010001011110100000001011100100100100000110100010111101000000010111001001001000011001000101111010000000101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000111000001011110000000101011101100100100000110000010111100000001010111011001001000001100000101111000000010101110110010010000011000001011110000000101011101100100100000111000010111100000001010111011001001000001110000101111000000010101110010010010000011000001011110000000101011100100100100000100000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100000110000010111100000001010111001001001000001100000101111000000010101110010010010000011000001011110000000101011100100100100001100000010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000011001000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000011010001011110000000101011100100100100000110100010111100000001010111001001001000001101000101111000000010101110010010010000110010001011110000000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100000110000010111101000001010111001001001000001100000101111010000010101110010010010000011000001011110100000101011100100100100001110000010111101000001010111011001001000001100000101111010000010101110110010010000011100001011110100000101011101100100100000111000010111101000001010111001001001000001100000101111010000010101110010010010000010000001011110100000101011100100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000011001111101110000000110100110100100100000110011111011100000001101001101001001000001100111110111000000011010011010010010000111001111101110000000110100111000100100000110011111011100000001101001110001001000001110111110111000000011010011100010010000010101111101110000000110100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100000110111111011101000000101001100001001000001101111110111010000001010011000010010000011011111101110100000010100110000100100001110111111011101000000101001110001001000001101111110111010000001010011100010010000011111111101110100000010100111000100100000101111111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000001100111110111010000001010011000010010000011001111101110100000010100110000100100000110011111011101000000101001100001001000011100111110111010000001010011100010010000011001111101110100000010100111000100100000111011111011101000000101001110001001000001010111110111010000001010011000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000011010001011110100000101011100000100100000110100010111101000001010111000001001000001101000101111010000010101110000010010000111010001011110100000101011101100100100000110100010111101000001010111011001001000001111000101111010000010101110110010010000011110001011110100000101011100100100100000110100010111101000001010111001001001000001001000101111010000010101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100000110000010111100000000110111001001001000001100000101111000000001101110010010010000011000001011110000000011011100100100100001110000010111100000000110111011001001000001100000101111000000001101110110010010000011100001011110000000011011101100100100000111000010111100000000110111001001001000001100000101111000000001101110010010010000010000001011110000000011011100100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000100001111111110100000000000110100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100000110100010111100000000110111001001001000001101000101111000000001101110010010010000011010001011110000000011011100100100100001100100010111100000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000001100000101111010000001101110010010010000011000001011110100000011011100100100100000110000010111101000000110111001001001000011100000101111010000001101110110010010000011000001011110100000011011101100100100000111000010111101000000110111011001001000001110000101111010000001101110010010010000011000001011110100000011011100100100100000100000010111101000000110111001001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000100011111111110100000111111110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100001000011111111101000000000001101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000100001111111110100000000000110100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100000110100010111101000000110111001001001000001101000101111010000001101110010010010000011010001011110100000011011100100100100001100100010111101000000110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000001100000101111000000011101110010010010000011000001011110000000111011100100100100000110000010111100000001110111001001001000011100000101111000000011101110110010010000011000001011110000000111011101100100100000111000010111100000001110111011001001000001110000101111000000011101110010010010000011000001011110000000111011100100100100000100000010111100000001110111001001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000100011111111110100000111111110100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100000110100010111100000001110111001001001000001101000101111000000011101110010010010000011010001011110000000111011100100100100001100100010111100000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000001100000101111010000011101110010010010000011000001011110100000111011100100100100000110000010111101000001110111001001001000011100000101111010000011101110110010010000011000001011110100000111011101100100100000111000010111101000001110111011001001000001110000101111010000011101110010010010000011000001011110100000111011100100100100000100000010111101000001110111001001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000100011111111110100000111111110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100001110011111011101000000101001111001001000001100111110111010000001010011110010010000011101111101110100000010100111100100100000111011111011101000000101001101001001000001100111110111010000001010011010010010000010001111101110100000010100110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000011001111101110100000010100110100100100000110011111011101000000101001101001001000001100111110111010000001010011010010010000111001111101110100000010100111000100100000110011111011101000000101001110001001000001110111110111010000001010011100010010000010101111101110100000010100110000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100000110100010111101000001110111000001001000001101000101111010000011101110000010010000011010001011110100000111011100000100100001110100010111101000001110111011001001000001101000101111010000011101110110010010000011110001011110100000111011101100100100000111100010111101000001110111001001001000001101000101111010000011101110010010010000010010001011110100000111011100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000001100000101111000000000011110010010010000011000001011110000000000111100100100100000110000010111100000000001111001001001000011100000101111000000000011110110010010000011000001011110000000000111101100100100000111000010111100000000001111011001001000001110000101111000000000011110010010010000011000001011110000000000111100100100100000100000010111100000000001111001001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000111011111101110000000010100111000100100000110111111011100000000101001110001001000001111111110111000000001010011100010010000010111111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100000110011111011100000000101001100001001000001100111110111000000001010011000010010000011001111101110000000010100110000100100001110011111011100000000101001110001001000001100111110111000000001010011100010010000011101111101110000000010100111000100100000101011111011100000000101001100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000000101111111111010000011111111000010010000001011111111110100000111111110000100100000010111111111101000001111111100001001000010001111111111010000011111111000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000011000001011110100000011100010000100100000110000010111101000000111000100001001000001100000101111010000001110001000010010000111000001011110100000011100011100100100000110000010111101000000111000111001001000001110000101111010000001110001110010010000011100001011110100000011100010100100100000110000010111101000000111000101001001000001000000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100000110100010111101000000111000101001001000001101000101111010000001110001010010010000011010001011110100000011100010100100100001100100010111101000000111000101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000001001111111110000000000000110100100100000010011111111100000000000001101001001000000100111111111000000000000011010010010000100001111111110000000000000110100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100000110000010111100000001111000101001001000001100000101111000000011110001010010010000011000001011110000000111100010100100100001110000010111100000001111000111001001000001100000101111000000011110001110010010000011100001011110000000111100011100100100000111000010111100000001111000101001001000001100000101111000000011110001010010010000010000001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000001101000101111000000011110001010010010000011010001011110000000111100010100100100000110100010111100000001111000101001001000011001000101111000000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000011000001011110100000111100010100100100000110000010111101000001111000101001001000001100000101111010000011110001010010010000111000001011110100000111100011100100100000110000010111101000001111000111001001000001110000101111010000011110001110010010000011100001011110100000111100010100100100000110000010111101000001111000101001001000001000000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100000110100010111101000001111000101001001000001101000101111010000011110001010010010000011010001011110100000111100010100100100001100100010111101000001111000101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000001001111111110100000000000110100100100000010011111111101000000000001101001001000000100111111111010000000000011010010010000100001111111110100000000000110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100001000111111111101000001111111101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000001100000101111000000000001001010010010000011000001011110000000000010010100100100000110000010111100000000000100101001001000011100000101111000000000001001110010010000011000001011110000000000010011100100100000111000010111100000000000100111001001000001110000101111000000000001001010010010000011000001011110000000000010010100100100000100000010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000011010001011110000000000010010100100100000110100010111100000000000100101001001000001101000101111000000000001001010010010000110010001011110000000000010010100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100001000111111111101000001111111101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000001100000101111000000010001001010010010000011000001011110000000100010010100100100000110000010111100000001000100101001001000011100000101111000000010001001110010010000011000001011110000000100010011100100100000111000010111100000001000100111001001000001110000101111000000010001001010010010000011000001011110000000100010010100100100000100000010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000011010001011110000000100010010100100100000110100010111100000001000100101001001000001101000101111000000010001001010010010000110010001011110000000100010010100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100000110011111011100000000101001101001001000001100111110111000000001010011010010010000011001111101110000000010100110100100100001110011111011100000000101001111001001000001100111110111000000001010011110010010000011101111101110000000010100111100100100000111011111011100000000101001101001001000001100111110111000000001010011010010010000010001111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000001101111110111000000001010011010010010000011011111101110000000010100110100100100000110111111011100000000101001101001001000011001111110111000000001010011010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000011010001011110000000000111100100100100000110100010111100000000001111001001001000001101000101111000000000011110010010010000111010001011110000000000111101100100100000110100010111100000000001111011001001000001111000101111000000000011110110010010000011110001011110000000000111100100100100000110100010111100000000001111001001001000001001000101111000000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100000110000010111101000000001111001001001000001100000101111010000000011110010010010000011000001011110100000000111100100100100001110000010111101000000001111011001001000001100000101111010000000011110110010010000011100001011110100000000111101100100100000111000010111101000000001111001001001000001100000101111010000000011110010010010000010000001011110100000000111100100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000111011111101110100000010100111000100100000110111111011101000000101001110001001000001101111110111010000001010011100010010000011011111101110100000010100111000100100000110111111011101000000101001110001001000001111111110111010000001010011100010010000010111111101110100000010100110000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100000110100010111101000000001111000001001000001101000101111010000000011110000010010000011010001011110100000000111100000100100001110100010111101000000001111011001001000001101000101111010000000011110110010010000011010001011110100000000111101100100100000111100010111101000000001111011001001000001111000101111010000000011110010010010000011010001011110100000000111100100100100000100100010111101000000001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000110000010111100000001001111001001001000011100000101111000000010011110110010010000011000001011110000000100111101100100100000110000010111100000001001111011001001000001100000101111000000010011110110010010000011000001011110000000100111101100100100000111000010111100000001001111001001001000001100000101111000000010011110010010010000011000001011110000000100111100100100100000100000010111100000001001111001001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000100011111111110100000111111110100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100001110000000011101000000010101011001001000001100000000111010000000101010110010010000011100000001110100000001010101100100100000111000000011101000000010101001001001000001100000000111010000000101010010010010000010000000001110100000001010100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000001101000101111000000010011110010010010000011010001011110000000100111100100100100000110100010111100000001001111001001001000011101000101111000000010011110110010010000011010001011110000000100111101100100100000111100010111100000001001111011001001000001111000101111000000010011110010010010000011010001011110000000100111100100100100000100100010111100000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000011000001011110100000100111100100100100000110000010111101000001001111001001001000001100000101111010000010011110010010010000111000001011110100000100111101100100100000110000010111101000001001111011001001000001110000101111010000010011110110010010000011100001011110100000100111100100100100000110000010111101000001001111001001001000001000000101111010000010011110010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100001000111111111101000001111111101001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000001100000000111010000000101010010010010000011000000001110100000001010100100100100000110000000011101000000010101001001001000011100000000111010000000101010110010010000011000000001110100000001010101100100100000111000000011101000000010101011001001000001110000000111010000000101010010010010000011000000001110100000001010100100100100000100000000011101000000010101001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000011010001011110100000100111100100100100000110100010111101000001001111001001001000001101000101111010000010011110010010010000111010001011110100000100111101100100100000110100010111101000001001111011001001000001111000101111010000010011110110010010000011110001011110100000100111100100100100000110100010111101000001001111001001001000001001000101111010000010011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100000110000010111100000000101111001001001000001100000101111000000001011110010010010000011000001011110000000010111100100100100001110000010111100000000101111011001001000001100000101111000000001011110110010010000011100001011110000000010111101100100100000111000010111100000000101111001001001000001100000101111000000001011110010010010000010000001011110000000010111100100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000000101111111111010000011111111010010010000001011111111110100000111111110100100100000010111111111101000001111111101001001000010001111111111010000011111111010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000011011111101110100000010100110100100100000110111111011101000000101001101001001000001101111110111010000001010011010010010000111011111101110100000010100111100100100000110111111011101000000101001111001001000001111111110111010000001010011110010010000011111111101110100000010100110100100100000110111111011101000000101001101001001000001001111110111010000001010011010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100000110100010111100000000101111001001001000001101000101111000000001011110010010010000011010001011110000000010111100100100100001110100010111100000000101111011001001000001101000101111000000001011110110010010000011110001011110000000010111101100100100000111100010111100000000101111001001001000001101000101111000000001011110010010010000010010001011110000000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001001001000001100000101111010000001011110010010010000011000001011110100000010111100100100100000110000010111101000000101111001
+ 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111T111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CoCo3.qsf b/CoCo3.qsf
index 9194160..6764959 100644
--- a/CoCo3.qsf
+++ b/CoCo3.qsf
@@ -65,9 +65,10 @@ source sys/sys_analog.tcl
source files.qip
set_global_assignment -name ENABLE_SIGNALTAP OFF
-set_global_assignment -name USE_SIGNALTAP_FILE Serial.stp
+set_global_assignment -name USE_SIGNALTAP_FILE AMW.stp
set_global_assignment -name SIGNALTAP_FILE Video_Explorer.stp
set_global_assignment -name SIGNALTAP_FILE rom_Exploror.stp1
set_global_assignment -name SOURCE_FILE rom_Exploror.stp1
set_global_assignment -name SIGNALTAP_FILE Serial.stp
+set_global_assignment -name SIGNALTAP_FILE AMW.stp
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
\ No newline at end of file
diff --git a/CoCo3.sv b/CoCo3.sv
index 5324505..71c0465 100644
--- a/CoCo3.sv
+++ b/CoCo3.sv
@@ -193,7 +193,7 @@ localparam CONF_STR = {
"COCO3;UART19200:9600:4800:2400:1200:300;",
"-;",
//"OCD,Multi-Pak Slot,Orch 90,ECB / Cart,Disk;",
- "OCD,Multi-Pak Slot,Disk,ECB / Cart,Orc 90;",
+ "OCD,Multi-Pak Slot,Orc 90,ECB / Cart,Disk;",
"-;",
"H2S0,DSK,Load Disk Drive 0;",
"H2S1,DSK,Load Disk Drive 1;",
@@ -229,7 +229,9 @@ localparam CONF_STR = {
"O6,Swap Joysticks,Off,On;",
"RA,Easter Egg;",
"-;",
- "OJK,Turbo Speed:,1.78 Mhz,3.58 Mhz,7.16 Mhz, NA;",
+ "OO,Force Turbo,No,Yes;",
+ "OJK,Turbo Speed,1.78 Mhz,3.58 Mhz,7.16 Mhz, NA;",
+ "OPR,Memory Size,512K,1M,2M,16M;",
"-;",
"RM,Cold Boot;",
"R0,Reset;",
@@ -420,7 +422,7 @@ EE_Cold_Bt COCO3_EE_Cold_Bt (
.CLK(CLK_14),
.Display_EE(easter_egg), // from MISTer subsystem
- .Cold_Boot(coldboot | mpi_reset), // from MISTer subsystem or mpi change
+ .Cold_Boot(AMW_ACK), // from AMW system
.RESET_to_COCO_N(Programmed_RESET_N), // RESET_N to the coco3 [logically AND'ed to top reset]
.EE_to_COCO(Programmed_EE) // Easter Egg to the coco3
@@ -537,7 +539,13 @@ coco3fpga coco3 (
.RTC(RTC),
+ .AMW_Trigger(coldboot | mpi_reset | mem_reset),
+ .AMW_ACK(AMW_ACK),
+ .F_Turbo(F_Turbo),
+
+ .Mem_Size(Mem_Size),
+
.UART_TXD(UART_TXD),
.UART_RXD(UART_RXD),
.UART_RTS(UART_RTS),
@@ -550,9 +558,11 @@ wire [5:0] cocosound;
wire [1:0] turbo_speed = status[20:19];
+wire AMW_ACK;
+
wire cpu_speed = status[11];
-wire [1:0] mpi = (status[13:12]==2'b10) ? 2'b00 : status[13:12]==2'b01 ? 2'b10 : status[13:12]==2'b00 ? 2'b11 : 2'b00;
+wire [1:0] mpi = (status[13:12]==2'b00) ? 2'b00 : status[13:12]==2'b01 ? 2'b10 : status[13:12]==2'b10 ? 2'b11 : 2'b00;
wire video=status[14];
wire cartint=status[16];
wire sg4v6 = status[21];
@@ -561,6 +571,9 @@ wire PHASE = status[18];
wire coldboot = status[22];
+wire F_Turbo = status[24];
+wire [2:0] Mem_Size = status[27:25];
+
wire digitalJoy = status[23];
reg [2:0] mpi_d = 2'b00;
reg first_mpi_chg = 1'b0;
@@ -579,6 +592,23 @@ begin
end
+reg [2:0] Mem_Size_d = 3'b000;
+reg first_mem_chg = 1'b0;
+reg mem_reset = 1'b0;
+
+always @ (negedge CLK_14)
+begin
+ Mem_Size_d <= Mem_Size;
+ mem_reset <= 1'b0;
+
+ if (~(Mem_Size == Mem_Size_d))
+ if (~first_mem_chg)
+ first_mem_chg <= 1'b1;
+ else
+ mem_reset <= 1'b1;
+
+end
+
// Set bit 9 to swap serial ports...
wire [9:0] switch = { 4'b1000,sg4v6,cartint,video,mpi,cpu_speed} ;
diff --git a/docs/CoCo3FPGA.docx b/docs/CoCo3FPGA.docx
index 565c2e0..6a160bb 100644
Binary files a/docs/CoCo3FPGA.docx and b/docs/CoCo3FPGA.docx differ
diff --git a/docs/CoCo3FPGA.pdf b/docs/CoCo3FPGA.pdf
index 6d47e95..2a56e73 100644
Binary files a/docs/CoCo3FPGA.pdf and b/docs/CoCo3FPGA.pdf differ
diff --git a/docs/~$Co3FPGA.docx b/docs/~$Co3FPGA.docx
new file mode 100644
index 0000000..0a19552
Binary files /dev/null and b/docs/~$Co3FPGA.docx differ
diff --git a/files.qip b/files.qip
index eb4bd97..c4c084e 100644
--- a/files.qip
+++ b/files.qip
@@ -16,6 +16,7 @@ set_global_assignment -name VERILOG_FILE rtl/pll.v
set_global_assignment -name VERILOG_FILE rtl/pll/pll_0002.v
set_global_assignment -name VERILOG_FILE rtl/cassette.v
set_global_assignment -name VERILOG_FILE rtl/rtc.sv
+set_global_assignment -name VERILOG_FILE rtl/AMW.v
set_global_assignment -name VERILOG_FILE rtl/square_gen.v
set_global_assignment -name SYSTEMVERILOG_FILE rtl/fdc.sv
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdram/sdram2.sv
@@ -26,4 +27,5 @@ set_global_assignment -name SYSTEMVERILOG_FILE rtl/coco_mem_fetch.sv
set_global_assignment -name VERILOG_FILE rtl/EE_Cold_Bt.v
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_32K.vhd
set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_8K.vhd
+set_global_assignment -name VHDL_FILE rtl/rom/coco_rom_16.vhd
set_global_assignment -name SDC_FILE rtl/CoCo3FPGA.sdc
diff --git a/rtl/AMW.v b/rtl/AMW.v
new file mode 100644
index 0000000..8371bb2
--- /dev/null
+++ b/rtl/AMW.v
@@ -0,0 +1,221 @@
+////////////////////////////////////////////////////////////////////////////////
+// Project Name: CoCo3FPGA Version 5.0
+// File Name: AMW.v
+//
+// CoCo3 in an FPGA
+//
+////////////////////////////////////////////////////////////////////////////////
+//
+////////////////////////////////////////////////////////////////////////////////
+//
+// Color Computer 3 compatible system on a chip
+//
+//
+// Copyright (c) 2008 Gary Becker (gary_l_becker@yahoo.com)
+//
+// All rights reserved
+//
+// Redistribution and use in source and synthezised forms, with or without
+// modification, are permitted provided that the following conditions are met:
+//
+// Redistributions of source code must retain the above copyright notice,
+// this list of conditions and the following disclaimer.
+//
+// Redistributions in synthesized form must reproduce the above copyright
+// notice, this list of conditions and the following disclaimer in the
+// documentation and/or other materials provided with the distribution.
+//
+// Neither the name of the author nor the names of other contributors may
+// be used to endorse or promote products derived from this software without
+// specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
+// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+// POSSIBILITY OF SUCH DAMAGE.
+//
+// Please report bugs to the author, but before you do so, please
+// make sure that this is not a derivative work and that
+// you have the latest version of this file.
+//
+//
+////////////////////////////////////////////////////////////////////////////////
+// Stan Hodge
+//
+// Automated Memory Write by Stan Hodge 1/20/22
+////////////////////////////////////////////////////////////////////////////////
+
+
+module AMW(
+input CLK,
+input RESET_N,
+
+input Trigger,
+input Restart,
+input Cycle_Run, // AMW_WR shows cycle in process
+
+output reg [24:0] AMW_Adrs,
+output reg [7:0] AMW_Data,
+output reg AMW_EN,
+output reg AMW_Ready,
+output reg AMW_End
+);
+
+////////////////////////////////////////////////////////////
+
+COCO_ROM_16 COCO3_ROM_Instructions (
+ .ADDR(pgm_address),
+ .DATA(DOUT)
+);
+
+wire [7:0] DOUT;
+
+// Instructions are 5 bytes
+
+// valid, nc, nc, nc, nc, nc, nc, a24
+// a23, a22, a21, a20, a19, a18, a17, a16
+// a15, a14, a13, a12, a11, a10, a09, a08
+// a07, a06, a05, a04, a03, a02, a01, a00
+// d07, d06, d05, d04, d03, d02, d01, d00
+
+////////////////////////////////////////////////////////////
+
+localparam AMW_START = 4'd0;
+localparam AMW_F1 = 4'd1;
+localparam AMW_F2 = 4'd2;
+localparam AMW_F3 = 4'd3;
+localparam AMW_F4 = 4'd4;
+localparam AMW_F5 = 4'd5;
+localparam AMW_WAIT = 4'd6;
+localparam AMW_W1 = 4'd7;
+localparam AMW_W2 = 4'd8;
+localparam AMW_ST_END = 4'd9;
+
+reg [3:0] state;
+reg [3:0] pgm_address;
+reg valid;
+reg Trigger_D;
+reg run;
+
+always @(negedge CLK or negedge RESET_N)
+begin
+ if(!RESET_N)
+ begin
+ state <= AMW_START;
+ pgm_address <= 4'b0000;
+ AMW_Ready <= 1'b0;
+ valid <= 1'b0;
+ AMW_End <= 1'b0;
+ AMW_EN <= 1'b0;
+ run <= 1'b0;
+ end
+ else
+ begin
+
+ Trigger_D <= Trigger;
+
+ case(state)
+
+ AMW_START:
+ begin
+ pgm_address <= 4'b0000;
+ AMW_Ready <= 1'b0;
+ AMW_EN <= 1'b0;
+ state <= AMW_F1;
+ run <= 1'b0;
+ end
+
+ AMW_F1:
+ begin
+ AMW_Ready <= 1'b0;
+ valid <= DOUT[7];
+ AMW_Adrs[24] <= DOUT[0];
+ pgm_address <= pgm_address + 1'b1;
+ state <= AMW_F2;
+ end
+
+ AMW_F2:
+ begin
+ if (~valid)
+ state <= AMW_ST_END;
+ else
+ begin
+ AMW_Adrs[23:16] <= DOUT[7:0];
+ pgm_address <= pgm_address + 1'b1;
+ state <= AMW_F3;
+ end
+ end
+
+ AMW_F3:
+ begin
+ AMW_Adrs[15:8] <= DOUT[7:0];
+ pgm_address <= pgm_address + 1'b1;
+ state <= AMW_F4;
+ end
+
+ AMW_F4:
+ begin
+ AMW_Adrs[7:0] <= DOUT[7:0];
+ pgm_address <= pgm_address + 1'b1;
+ state <= AMW_F5;
+ end
+
+ AMW_F5:
+ begin
+ AMW_Data <= DOUT[7:0];
+ pgm_address <= pgm_address + 1'b1;
+ AMW_Ready <= 1'b1;
+ state <= AMW_WAIT;
+ end
+
+ AMW_WAIT:
+ begin
+ if (run | (Trigger == 1'b1 && Trigger_D == 1'b0))
+ begin
+ run <= 1'b1;
+ AMW_EN <= 1'b1;
+ AMW_Ready <= 1'b0;
+ state <= AMW_W1;
+ end
+ end
+
+ AMW_W1:
+ begin
+ if (Cycle_Run) // Processing
+ begin
+ AMW_EN <= 1'b0;
+ state <= AMW_W2;
+ end
+ end
+
+ AMW_W2:
+ begin
+ if (~Cycle_Run) // Write Done
+ begin
+ state <= AMW_F1; // Get next inst
+ end
+ end
+
+ AMW_ST_END:
+ begin
+ AMW_End <= 1'b1;
+ if (Restart)
+ begin
+ AMW_End <= 1'b0;
+ state <= AMW_START;
+ end
+ end
+
+ default:;
+ endcase
+ end
+end
+
+endmodule
diff --git a/rtl/EE_Cold_Bt.v b/rtl/EE_Cold_Bt.v
index 419335d..06bcfcc 100644
--- a/rtl/EE_Cold_Bt.v
+++ b/rtl/EE_Cold_Bt.v
@@ -87,8 +87,11 @@ localparam LONG_TIME = 24'h418D40; // .3 sec @ 14.32 Mhz
localparam EE_PROG = {20'h00000, inst_EE_INACTIVE, inst_LONG_TIMER, inst_RESET_INACTIVE, inst_SHORT_TIMER, inst_RESET_ACTIVE,
inst_EE_ACTIVE, inst_START};
-localparam Cold_Boot_PROG = {1'h0, inst_RESET_INACTIVE, inst_SHORT_TIMER, inst_RESET_ACTIVE, inst_SHORT_TIMER, inst_EE_INACTIVE,
- inst_LONG_TIMER, inst_RESET_INACTIVE, inst_SHORT_TIMER, inst_RESET_ACTIVE, inst_EE_ACTIVE, inst_START};
+// Orignal Easter Egg Cold Boot
+//localparam Cold_Boot_PROG = {1'h0, inst_RESET_INACTIVE, inst_SHORT_TIMER, inst_RESET_ACTIVE, inst_SHORT_TIMER, inst_EE_INACTIVE,
+// inst_LONG_TIMER, inst_RESET_INACTIVE, inst_SHORT_TIMER, inst_RESET_ACTIVE, inst_EE_ACTIVE, inst_START};
+localparam Cold_Boot_PROG = {28'h0000000,
+ inst_LONG_TIMER, inst_RESET_INACTIVE, inst_SHORT_TIMER, inst_RESET_ACTIVE, inst_START};
localparam inst_NULL = 4'd0;
localparam inst_EE_ACTIVE = 4'd1;
diff --git a/rtl/coco3fpga.sv b/rtl/coco3fpga.sv
index b402fb0..90208cf 100644
--- a/rtl/coco3fpga.sv
+++ b/rtl/coco3fpga.sv
@@ -1,6 +1,6 @@
////////////////////////////////////////////////////////////////////////////////
// Project Name: CoCo3FPGA Version 5.x.x
-// File Name: coco3fpga.v
+// File Name: coco3fpga.sv
//
// CoCo3 in an FPGA
//
@@ -120,14 +120,14 @@ output [15:0] SOUND_RIGHT,
// Needs removal.... ???
input [3:0] PADDLE_CLK,
input [3:0] P_SWITCH,
- // joystick input
- // digital for buttons
- input [15:0] joy1,
- input [15:0] joy2,
- // analog for position
- input [15:0] joya1,
- input [15:0] joya2,
- input joy_use_dpad,
+// joystick input
+// digital for buttons
+input [15:0] joy1,
+input [15:0] joy2,
+// analog for position
+input [15:0] joya1,
+input [15:0] joya2,
+input joy_use_dpad,
// Config Static switches
input [9:0] SWITCH,
@@ -187,9 +187,14 @@ input sdram_vid_ready,
input sdram_busy,
+input AMW_Trigger,
+output AMW_ACK,
+
input [64:0] RTC,
-input [1:0] turbo_speed
+input F_Turbo,
+input [1:0] turbo_speed,
+input [2:0] Mem_Size
);
@@ -227,13 +232,6 @@ wire [21:0] FLASH_ADDRESS;
wire [7:0] FLASH_DATA;
-// LEDs
-// SRH DE2-115 has one extra Green LED
-wire [8:0] LEDG;
-//output [9:0] LEDR;
-// SRH DE2-115 has 10 extra Red LED
-wire [17:0] LEDR;
-
// Extra Buttons and Switches
// SRH MISTer
@@ -246,7 +244,6 @@ wire EF;
wire PH_2;
reg PH_2_RAW;
reg RESET_N;
-reg [13:0] RESET_SM;
reg [6:0] CPU_RESET_SM;
reg CPU_RESET;
wire RESET_INS;
@@ -519,8 +516,6 @@ wire RDFIFO_WRFULL;
wire WRFIFO_RDEMPTY;
wire WRFIFO_WRFULL;
reg BI_IRQ_EN;
-reg [19:0] MCLOCK;
-reg [19:0] MCLOCK_DELAY;
wire I2C_SCL_EN;
wire I2C_DAT_EN;
reg [7:0] I2C_DEVICE;
@@ -657,7 +652,7 @@ wire [4:0] HOUR;
wire [5:0] MIN;
wire [5:0] SEC;
-// This is a Real Time Clock. It is initialized by RTC which is provided by MISTER
+// This is a Real Time Clock. It is initialized by RTC which is provided by MISTER.
// RTC is provided only once after reset to initialize the clock. RTC is in BCD
// format. The output here is in BIN values. Note while CENT will roll in the clock
// it is NOT initialized from MiSTer. As such - it is a static value set to 5'd20.
@@ -682,61 +677,15 @@ rtc #(50000000) CC3_rtc(
//assign PROBE[6:0] = {CART1_POL, CART1_BUF_RESET_N, CART1_FIRQ_STAT_N, CART1_CLK_N, CART1_FIRQ_N, RESET_N, PH_2};
//assign PROBE[7:0] = {1'b0, CART1_POL, CART1_FIRQ_N, CART1_FIRQ_BUF[0], CART1_CLK_N_D, CART1_FIRQ_RESET_N, CART1_CLK_N, PH_2};
assign PROBE[7:0] = {2'b00, cache_hit, COCO3_ROM_WRITE, ioctl_wr, ioctl_download, ioctl_index[7], ioctl_index[6]};
-assign PROBE[15:8] = LEDR[7:0];
-assign PROBE[23:16] = LEDG[7:0];
+assign PROBE[15:8] = 8'h00;
+assign PROBE[23:16] = 8'h00;
//assign PROBE[31:24] = {3'b000, DATA_OUT[3], MOTOR, DRIVE_SEL_EXT[0], HDD_EN, ADDRESS[0]};
assign PROBE[31:24] = {2'b00, fdc_probe[5:0]};
assign clk_sys = CLK_57;
-
assign BUTTON_N[3:0] = {COCO_RESET_N, 2'b1,EE_N};
-//assign LEDG = TRACE; // Floppy Trace
-
-assign LEDG[0] = 1'b0;
-assign LEDG[1] = 1'b0;
-assign LEDG[2] = 1'b0;
-assign LEDG[3] = FLASH_CE_S;
-assign LEDG[4] = (ADDRESS == 16'hFF84); // SDRAM
-assign LEDG[5] = 1'b0;
-assign LEDG[6] = 1'b0; // SD Card activity
-assign LEDG[7] = 1'b0;
-// SRH DE2-115 Extra Green LED is unused and off
-assign LEDG[8] = 1'b0;
-
-assign LEDR[0] = 1'b0;
-assign LEDR[1] = 1'b0;
-assign LEDR[2] = 1'b0;
-assign LEDR[3] = 1'b0;
-
-assign LEDR[4] = 1'b0;
-assign LEDR[5] = SWITCH[6]; // SD Card inserted
-assign LEDR[6] = RESET_N;
-assign LEDR[7] = KEY[55]; // Shift Lock
-// SRH DE2-115 Extra Red LEDs are unused and off
-assign LEDR[17:8] = 10'b0000000000;
-
-//Master clock divider chain
-// MCLOCK[0] = 50/2 = 25 MHz
-// MCLOCK[1] = 50/4 = 12.5 MHz
-// MCLOCK[2] = 50/8 = 6.25 MHz
-// MCLOCK[3] = 50/16 = 3.125 MHz
-// MCLOCK[4] = 50/32 = 1.5625 MHz
-// MCLOCK[5] = 50/64 = 781.25 KHz
-// MCLOCK[6] = 50/128 = 390.625 KHz
-// MCLOCK[7] = 50/256 = 195.125 KHz
-// MCLOCK[8] = 50/512 = 97.65625 KHz
-// MCLOCK[9] = 50/1024 = 48.828125 KHz
-// MCLOCK[10] = 50/2048 = 24.4140625 KHz
-// MCLOCK[11] = 50/4096 = 12.20703125 KHz
-
-always @ (negedge clk_sys) //50 MHz
-begin
- MCLOCK <= MCLOCK + 1'b1;
- MCLOCK_DELAY <= MCLOCK;
-end
-
/*****************************************************************************
* RAM signals
@@ -769,8 +718,8 @@ assign BLOCK_ADDRESS = ({MMU_EN, MMU_TR, ADDRESS[15:13]} == 5'b1
({VEC_PAG_RAM, MMU_EN, MMU_TR, ADDRESS[15:8]} ==11'b01111111110) ? SAM17: // 011 1111 1110 FE00-FEFF RAM Vector page
{9'h007, ADDRESS[15:13]};
-assign RAM_CS = (ADDRESS[15:0]== 18'h2FFE8) ? 1'b1: // GART 1
- (ADDRESS[15:0]== 18'h2FFE9) ? 1'b1: // GART 2
+assign RAM_CS = (ADDRESS[15:0]== 16'hFFE8) ? 1'b1: // GART 1
+ (ADDRESS[15:0]== 16'hFFE9) ? 1'b1: // GART 2
({ADDRESS[15:8]}== 8'hFF) ? 1'b0: // Hardware (FF00-FFFF) always Excluded
ROM_SEL ? 1'b0: // Internal ROM
FLASH_CE_S ? 1'b0: // Cart ROM
@@ -899,11 +848,11 @@ assign ENA_PAK = ({CART_SEL, MPI_CTS} == 3'b110) ? 1'b1: // ROM SLOT 3
1'b0;
assign ENA_DSK = ({CART_SEL, MPI_CTS} == 3'b111) ? 1'b1: // Disk C000-DFFF Slot 4
1'b0;
-assign HDD_EN = ({MPI_SCS[0], ADDRESS[15:4]} == 13'b1111111110100) ? 1'b1: // FF40-FF4F with MPI switch = 2 or 4
+assign HDD_EN = ({MPI_SCS[0], ADDRESS[15:4]} == 13'b1111111110100) ? 1'b1: // FF40-FF4F with MPI switch = 2 or 4
1'b0;
assign RS232_EN = (ADDRESS[15:2] == 14'b11111111011010) ? 1'b1: //FF68-FF6B
1'b0;
-assign SLOT3_HW = ({MPI_SCS, ADDRESS[15:5]} == 13'b1011111111010) ? 1'b1: // FF40-FF5F
+assign SLOT3_HW = ({MPI_SCS, ADDRESS[15:5]} == 13'b1011111111010) ? 1'b1: // FF40-FF5F
1'b0;
assign VDAC_EN = ({RW_N,ADDRESS[15:0]} == 17'H0FF7E) ? 1'b1: // FF7E
1'b0;
@@ -917,12 +866,12 @@ begin
else
begin
if({PH_2, SLOT3_HW, RW_N} == 3'b110)
-// case (ADDRESS[4:0])
-// 5'h00:
-// begin
+ case (ADDRESS[4:0])
+ 5'h00:
+ begin
ROM_BANK <= DATA_OUT[2:0];
-// end
-// endcase
+ end
+ endcase
end
end
@@ -1022,7 +971,7 @@ assign DATA_IN =
// (ADDRESS == 16'hFF88) ? BUFF_DATA[7:0]:
(ADDRESS == 16'hFF8E) ? GPIO_DIR:
- (ADDRESS == 16'hFF8F) ? GPIO:
+ (ADDRESS == 16'hFF8F) ? {GPIO[7:0]}:
(ADDRESS == 16'hFF90) ? {COCO1, MMU_EN, GIME_IRQ, GIME_FIRQ, VEC_PAG_RAM, ST_SCS, ROM}:
(ADDRESS == 16'hFF91) ? {2'b00, TIMER_INS, 4'b0000, MMU_TR}:
@@ -1140,6 +1089,27 @@ assign GPIO[6] = GPIO_DIR[6] ? GPIO_OUT[6]:
assign GPIO[7] = GPIO_DIR[7] ? GPIO_OUT[7]:
1'bZ;
+wire [24:0] AMW_Adrs;
+wire [7:0] AMW_Data;
+wire AMW_EN;
+wire AMW_Ready;
+wire AMW_End;
+
+assign AMW_ACK = AMW_End;
+
+AMW coco_AMW (
+ .CLK(clk_sys),
+ .RESET_N(RESET_N),
+ .Trigger(AMW_Trigger),
+ .Restart(1'b0),
+ .Cycle_Run(AMW_WR),
+ .AMW_Adrs(AMW_Adrs),
+ .AMW_Data(AMW_Data),
+ .AMW_EN(AMW_EN),
+ .AMW_Ready(AMW_Ready),
+ .AMW_End(AMW_End)
+);
+
reg end_hold;
reg [15:0] hold_data, hold_data_L;
@@ -1160,14 +1130,29 @@ begin
end
end
-// Original SRH 1/16/22
-//assign sdram_cpu_addr = {4'b0000, BLOCK_ADDRESS[7:0], ADDRESS[12:1], ADDRESS[0]};
-assign sdram_cpu_addr = {BLOCK_ADDRESS[11:0], ADDRESS[12:1], ADDRESS[0]};
-assign sdram_cpu_din = DATA_OUT;
+localparam Sz_512K = 3'b000;
+localparam Sz_1M = 3'b001;
+localparam Sz_2M = 3'b010;
+
+assign sdram_cpu_addr = (Mem_Size == Sz_512K) ? {6'h00, sdram_cpu_addr_i[18:0]}:
+ (Mem_Size == Sz_1M) ? {5'b00000, sdram_cpu_addr_i[19:0]}:
+ (Mem_Size == Sz_2M) ? {4'h0, sdram_cpu_addr_i[20:0]}:
+ sdram_cpu_addr_i[24:0]; // 32MB space but we only have MMU addressing for 16MB
+
+assign sdram_cpu_addr_i = (AMW_WR) ? AMW_Adrs:
+ (GART_RD) ? {2'b00, GART_READ}:
+ (GART_WR) ? {2'b00, GART_WRITE}:
+ {BLOCK_ADDRESS[11:0], ADDRESS[12:1], ADDRESS[0]};
+
+assign sdram_cpu_din = (AMW_WR) ? AMW_Data:
+ DATA_OUT;
+
+reg [24:0] sdram_cpu_addr_i;
reg [24:0] sdram_cpu_addr_L;
reg last_write;
reg sdram_BE_0, sdram_BE_1;
-
+reg GART_RD, GART_WR;
+reg AMW_WR;
wire cache_hit /* synthesis preserve */;
assign cache_hit = (sdram_cpu_addr[24:1] == sdram_cpu_addr_L[24:1]);
@@ -1194,6 +1179,9 @@ begin
last_write <= 1'b1;
sdram_BE_0 <= 1'b0;
sdram_BE_1 <= 1'b0;
+ GART_WR <= 1'b0;
+ GART_RD <= 1'b0;
+ AMW_WR <= 1'b0;
end
else
begin
@@ -1224,12 +1212,17 @@ begin
end
if (sdram_cpu_ack)
+ begin
sdram_cpu_req <= 1'b0;
-
+ GART_WR <= 1'b0; // GART address has already been used in the sdram controller so - de-select it
+ GART_RD <= 1'b0;
+ AMW_WR <= 1'b0;
+ end
+
case (CLK)
6'h00:
begin
- SWITCH_L <= {turbo_speed, RATE}; // Normal speed
+ SWITCH_L <= {turbo_speed, (RATE | F_Turbo)}; // Normal speed
CLK <= 6'h01;
PH_2_RAW <= 1'b1;
@@ -1238,27 +1231,40 @@ begin
begin
cpu_ena <= 1'b1;
- if (VMA & RAM_CS) // FFE8 is now in RAM_CS
+ if (AMW_EN) // Automated Memory Write ?
+ begin
+ AMW_WR <= 1'b1;
+ cpu_ena <= 1'b0; // Kill cpu enable
+
+// Start AMW cycle
+ RAM0_BE0_L <= !AMW_Adrs[0];
+ RAM0_BE1_L <= AMW_Adrs[0];
+ last_write <= 1'b1; // Kill cache hit
+ hold <= 1'b1;
+ sdram_cpu_req <= 1'b1;
+ sdram_cpu_rnw <= 1'b0;
+ end
+ else if (VMA & RAM_CS) // FFE8 / FFE9 is now in RAM_CS
begin
// sdram memory cycle
- if (ADDRESS[15:0] == 18'h2FFE8) // GART
+ if ((ADDRESS[15:0] == 16'hFFE8) | (ADDRESS[15:0] == 16'hFFE9)) // GART
begin
if (~RW_N)
begin // Gart Write
RAM0_BE0_L <= !GART_WRITE[0];
RAM0_BE1_L <= GART_WRITE[0];
- sdram_cpu_addr_L <= {2'b00, GART_WRITE};
+ GART_WR <= 1'b1;
end
else
begin // Gart Read
RAM0_BE0_L <= !GART_READ[0];
RAM0_BE1_L <= GART_READ[0];
- sdram_cpu_addr_L <= {2'b00, GART_READ};
+ GART_RD <= 1'b1;
end
hold <= 1'b1;
sdram_cpu_req <= 1'b1;
sdram_cpu_rnw <= RW_N;
- last_write <= ~RW_N;
+ last_write <= 1'b1; // Kill cache hit on any access after GART
end
else // Normal CPU cycle
// get which byte
@@ -1332,34 +1338,34 @@ assign RESET_P = !BUTTON_N[3] // Button
| RESET; // CTRL-ALT-DEL or CTRL-ALT-INS
// Make sure all resets are enabled for a long enough time to allow voltages to settle
-always @ (negedge clk_sys or posedge RESET_P) // 50 MHz / 64
+always @ (negedge clk_sys or posedge RESET_P)
begin
+ reg [24:0] RESET_SM;
+
if(RESET_P)
begin
- RESET_SM <= 14'h0000;
+ RESET_SM <= 25'd0;
CPU_RESET <= 1'b1;
RESET_N <= 1'b0;
MUGS <= RESET_INS; //This is holding a across a reset to activate the Easter Egg
end
else
begin
- if (MCLOCK[9] == 1'b0 && MCLOCK_DELAY[9] == 1'b1)
- case (RESET_SM)
- 14'h1FFF: // time = 1.28 uS * 14336 = 18350.08 uS
- begin
- RESET_N <= 1'b1;
- CPU_RESET <= 1'b1;
- RESET_SM <= 14'h3800;
- end
- 14'h3FFF: // time = 1.28 uS * 16383 = 20970.24 uS
- begin
- RESET_N <= 1'b1;
- CPU_RESET <= 1'b0;
- RESET_SM <= 14'h3FFF;
- end
- default:
- RESET_SM <= RESET_SM + 1'b1;
- endcase
+ case (RESET_SM)
+ 25'h0800000: // time = 143 mS
+ begin
+ RESET_N <= 1'b1;
+ CPU_RESET <= 1'b1;
+ RESET_SM <= RESET_SM + 1'b1;
+ end
+ 25'h1000000: // time = 286 mS
+ begin
+ RESET_N <= 1'b1;
+ CPU_RESET <= 1'b0;
+ end
+ default:
+ RESET_SM <= RESET_SM + 1'b1;
+ endcase
end
end
@@ -2357,7 +2363,7 @@ begin
MPI_CTS <= SWITCH[2:1];
// FF8E-FF8F
GPIO_DIR <= 8'h00;
- GPIO_OUT <= 8'h55;
+ GPIO_OUT <= 8'h00;
// FF90
ROM <= 2'b00;
ST_SCS <= 1'b0;
@@ -3311,10 +3317,11 @@ assign SOUND_RIGHT = {ORCH_RIGHT, ORCH_RIGHT_EXT} + {SOUND, 8'h00};
reg [15:0] dac_joya1;
reg [15:0] dac_joya2;
-always @(clk_sys) begin
+always @ (negedge clk_sys)
+begin
if (joy_use_dpad)
- begin
+ begin
dac_joya1[15:8] <= 8'd128;
dac_joya1[7:0] <= 8'd128;
@@ -3344,33 +3351,34 @@ always @(clk_sys) begin
if (joy2[3]) // upimg_mounted
dac_joya2[7:0] <= 8'd16;
- end
+ end
else
- begin
+ begin
dac_joya1 <= joya1;
dac_joya2 <= joya2;
- end
+ end
end
-always @(posedge clk_sys) begin
- case (SEL)
- 2'b00:
+always @(negedge clk_sys)
+begin
+ case (SEL)
+ 2'b00:
if (dac_joya2[15:10] > DTOA_CODE)
JSTICK<=1;
else
JSTICK<=0;
- 2'b01:
+ 2'b01:
if (dac_joya2[7:2] > DTOA_CODE)
JSTICK<=1;
else
JSTICK<=0;
-2'b10:
+ 2'b10:
if (dac_joya1[15:10] > DTOA_CODE)
JSTICK<=1;
else
JSTICK<=0;
- 2'b11:
+ 2'b11:
if (dac_joya1[7:2] > DTOA_CODE)
JSTICK<=1;
else
@@ -3379,7 +3387,6 @@ always @(posedge clk_sys) begin
end
-
/*****************************************************************************
* Convert PS/2 keyboard to CoCo keyboard
* Buttons
diff --git a/rtl/rom/coco_rom_16.vhd b/rtl/rom/coco_rom_16.vhd
new file mode 100644
index 0000000..8f231c7
--- /dev/null
+++ b/rtl/rom/coco_rom_16.vhd
@@ -0,0 +1,107 @@
+--//////////////////////////////////////////////////////////////////////////////
+-- Project Name: CoCo3FPGA Version Mister
+-- File Name: coco_rom_16.vhd
+--
+-- CoCo3 in an FPGA
+--
+--//////////////////////////////////////////////////////////////////////////////
+--
+--
+--//////////////////////////////////////////////////////////////////////////////
+--
+-- Color Computer 3 compatible system on a chip
+--
+--
+-- Copyright (c) 2008 Gary Becker (gary_l_becker@yahoo.com)
+--
+-- All rights reserved
+--
+-- Redistribution and use in source and synthezised forms, with or without
+-- modification, are permitted provided that the following conditions are met:
+--
+-- Redistributions of source code must retain the above copyright notice,
+-- this list of conditions and the following disclaimer.
+--
+-- Redistributions in synthesized form must reproduce the above copyright
+-- notice, this list of conditions and the following disclaimer in the
+-- documentation and/or other materials provided with the distribution.
+--
+-- Neither the name of the author nor the names of other contributors may
+-- be used to endorse or promote products derived from this software without
+-- specific prior written permission.
+--
+-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
+-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+-- POSSIBILITY OF SUCH DAMAGE.
+--
+-- Please report bugs to the author, but before you do so, please
+-- make sure that this is not a derivative work and that
+-- you have the latest version of this file.
+--
+-- The latest version of this file can be found at:
+-- http://groups.yahoo.com/group/CoCo3FPGA
+--
+-- File history :
+--
+--//////////////////////////////////////////////////////////////////////////////
+-- Gary Becker
+-- gary_L_becker@yahoo.com
+--//////////////////////////////////////////////////////////////////////////////
+--//////////////////////////////////////////////////////////////////////////////
+-- MISTer conversion work by Stan Hodge and Alan Steremberg
+
+
+
+library ieee;
+ use ieee.std_logic_1164.all;
+ use ieee.std_logic_unsigned.all;
+ use ieee.numeric_std.all;
+
+entity COCO_ROM_16 is
+ port (
+-- Main CPU Port
+ ADDR : in std_logic_vector(3 downto 0);
+ DATA : out std_logic_vector(7 downto 0)
+ );
+end;
+
+architecture RTL of COCO_ROM_16 is
+
+ type ROM_ARRAY is array(0 to 15) of std_logic_vector(7 downto 0);
+ signal ROM : ROM_ARRAY:= (
+// Clear $71 [Warm Start Flag]
+ x"80",x"07",x"00",x"71",x"00", -- valid, nc, nc, nc, nc, nc, nc, a24
+ -- a23, a22, a21, a20, a19, a18, a17, a16
+ -- a15, a14, a13, a12, a11, a10, a09, a08
+ -- a07, a06, a05, a04, a03, a02, a01, a00
+ -- d07, d06, d05, d04, d03, d02, d01, d00
+
+// Set $C000 <- $55 [Clear D in DK identifier in rom]
+ x"80",x"07",x"C0",x"00",x"55", -- valid, nc, nc, nc, nc, nc, nc, a24
+ -- a23, a22, a21, a20, a19, a18, a17, a16
+ -- a15, a14, a13, a12, a11, a10, a09, a08
+ -- a07, a06, a05, a04, a03, a02, a01, a00
+ -- d07, d06, d05, d04, d03, d02, d01, d00
+
+ x"00",x"00",x"00",x"00",x"00", -- valid, nc, nc, nc, nc, nc, nc, a24
+ -- a23, a22, a21, a20, a19, a18, a17, a16
+ -- a15, a14, a13, a12, a11, a10, a09, a08
+ -- a07, a06, a05, a04, a03, a02, a01, a00
+ -- d07, d06, d05, d04, d03, d02, d01, d00
+
+ x"00" -- valid, nc, nc, nc, nc, nc, nc, a24
+ );
+
+begin
+
+ DATA <= ROM(to_integer(unsigned(ADDR)));
+
+end RTL;