1000100111000000010100010101111100001011100010000001000110111000010111101001100110011001000000101000111001010000111110110010101001111100110000101110000010111100011001101001101101001001010000111111100101001010110101101001101011001010000110100100011011011101110000101000001100010011110001110110100011111010010010001100010101000111000001111100000010000011000011000000010000011100100111101001001001101101 1100011001010100000011111001100100100101010101001000101111111010011101010010001111101100111010011000000111111101011001001101000000101100011101011100101010100111001110110111010011000011100111010011111000001100001100100100110110011111110001100100011100100111100110111100101100101100111111011000011101101000000111101110101010101000110000001110001101110101101100111011110111101000001101101001010111001100 1100110100100100101101010110100000000001000001011010110100000111010100001001110000111010101001110110100000011111100010101011010100011011110100101110101111111000110001110110110011111101011001000000010000101010010011001101011100111000111110011010010100010110100001111000101001001111010100011010100010001000011001101111111100101011011111000010010011011100001101100100110000101011100001001100110110001101 1110111000111110000011111011101111100001010110101010111011001111101100110111011000101111100101011100100010000111000001100010111000101110100110000000010101011010111001001010101011000101110100000110000101101010101111101000001101110100111110001010011001001110110100100101001110110001110101100010001101010000010110111001011000101101101100110010000100100110100111000011111010111100100000001011111101000010 0010110110010010001111010110110001100001001000110111100111011101011101011000111111111001110111010101010110000101011011101100111000011000000101101111111110100111001111100011101011010011001001001111000111011011000100011100000001101001010101100101000110111101111100100011001111000010100000111000101110111000100010010101010111111001111010010010111100000000111000101100100010111101110101001001010011110000 0110111111101110010010111000010101010000110011101100100011110011011101110101001110111000011110011111000010001101000000111110001010111101111011100110100100001111000101110011110110110110000100010100101010101001011101000101001000111100000100100011000101010100000110000111000100110100101111010000001110100011011101101001101000000100101110011010011101001001010110000100011000001110010100000101011101011010 1111010000011111101010011110110101000111110001001000011000001011101100101000111100001101111011101100011111011110100010100111110101111101110001010011110010111011010110000101100111010110100011111001011110100111000000100100111101000111011100010101111101001101110000001111100001010001001001110000001101101111110111111010111101110110001011111011000011111000001101010111001100111101000111010011110111110010 0001000100001110111001001101111111000101001110100111010010000010101011100010111000101100100010001010000000000010001011011110100000001010011110111011000100000011001111001011000111000100110111001100110000000011101111010001001000111110101110101001100110001010100000101011011010001010011101100100001010010111000001110001100100011110110111001011110000100111000001110101110001010110011001000101100100001011 1011111011101111110111111101011101111101111100000001110010010101001011100000110100101001010000000110011100000111010101111010101011101011100000100110011010110110101101111010111000101011111001010000001000101111010010011101001001110010010100001100110011100110010100010000000111000010100110000100110111000110100001010000001111110100111010110101000000111010111000100000100110110010000100100000101001111011 0111101000011101001100101100100101000000111000001000100011111110000101100000010001000010001101011011011010001011110101101100011011110000000010011000101110101100101000000000010111110011100110100101100101001101011001101100101101111010000100100110111010100011011110110001110101011110100111010011100101101111111110101010110111101010011100111000100000011101101001011011110010001011011010011010011001101111 0100011010001000111110101110010110111010111101011111000110001111101111101100011100110110101010001101000100110110000011100110000100100111000101011110100101110011101101010001011101111111011010001111001010100001011001000111111001100001010010010011011011000111100000101100111110000101001101001011000001100110110001100101101000111001100010000101101111100010101011001010010001010100001101010010110110000111 1111110101100110110110011000000011101000001000001011011000011100101001110111011001100010000101010110011000000111010010010110000100100001111110111000111101000011100100000100010100111101001011111111001100101101111100011011001010001011100001001111011111111111110000011100010100111101100111011010101110001000110010001011011111011111011011100000011110001010111000111010011101111001100100101010001100000101 1001010110000100010101001011011110101000000001111101011101001111110001011111011101001000010001000011011110110110010001000100011011001100010110011010110110110000110110011000010000010100001010001001011011110110100010101101100011011111000000111000000111000110010001000101101001010110100100111101001110010110111000100111101011110110101101101000111100100001110110111010100010101001010011111010111111111101 0111101110010001011101011000100011110111000001110001001110110101111011010111011101111100101111000101101001111100010101110010001101101100000011111110100101001010001000010100110110110111101001100110100001110010001011001111100110101101011101011001000000011110111111000000100110000000001010011100000000001100101011110000011001111011101011111110011001110110111001001010011100110010000001000011011001110010 1001011001100100000010011111010100000011101011101010010100110001110101100011110000001110110000110100000110110111101000010100011011000110000000101011100110011001010000001110000100111100110000010000111111110011111001101111010101011101011100000000000100111000011001000001101110110000001010011011001100101100001001011110110001000100110101000011100110100101001111110010011001010111110011001011010100000001 1001000110010011001000100011111101110110010010111001010110010100011111000101101010100011110010011010101111010010011000111110011110000001111010001001111110000111000101111010100110111111010110010001101101011000000110011100110110101010100111011110011010111111011100101010111100100011110111111001010000000100001111110011000100001010101000101111100101001101010010010100010100111111111001110110100001100110 1110111000101100011010100100000001011010001101111101011010011101111010010010110000011001111111000001100101000101000001001110101001111111110101000001110000010110110001110111001101100111011001000111000010111011001101000010100001111110011111110011000100111101110110010000110101010101111011000100101010001000110001111001111010110010000100001101110010101010011110111011110101100111111000111100110101101100 1010100100010110100000100101001011100010001111011010110011111111110101101110011011000111110111101101110101000001111000111000010000011100110111010111111000110111101111110100001001100010000100000101011101010001001001110111000010001010101101001101000000100110110101010011110100100100001001100101110001011010110100011010100000011110000001111010111111010101010110110010101000110101011101111101010000100110 1010111111000001001000000001100010010001001001010010001010110000000100101011101110111010111110000100100101010011101111100100010001111110010100001010111001100111101101111001111101001111010001000000001000101001101100010101111101110000000111010110110000011011011000000110000000100001111101100101100011001000010011111100101111011111000111111000100101100100001101110110000000111111011011001010001010000010 0000100100110010111100001100111001100011011111110111101001101111100111010111110101110111110010111110101001001100111000000101111010001111000000100010110010010001011101110100110011001000100110001110110000000101010110010100100110100010000111100111100101101111101000001111001110000000111000011110001101111110011101010100010110001000110100111110011100110001110111011000111100101101001101110000011110111011 1000011100110101000000011011011101011001010110110110110000011000110110101100110110111001111110010011010111100000111100101101001110110101110111111000100101010111100111010011010000110001011001001000100101110100111001001001111000000010101101011010001100001101011101001111110001010001010010011110000001100011000101000101110010100000001101100100010101101010111111110000011011001010010010011010011001111001 1100111101001100101101011011010100110000000111100111111000001000111000001010111010111110001010011010101110001011101101001010101101100101001100101101100011010010011011100110110100010010100101100001011101010001000111110111010111000001100000100000100101011100011110001101101111000101001011000111101111100011111110101000110010001001111010100111011011011110000111111101100110000001010101110000101001110011 1111000010111000100010111100111100011011110011101110011101000111010111101110110001000110111110000010001101000011101001001010011111110110000110110100001110101100100111010001100100010100111111010100100111101101101110000000101110110001111100110010111100000001011010110101000101110010100000100110001111110101000010010100110001100001011100101111101100101111101001011011101010001001100011100001101101010000 0000001000101011001010110110111010111000001100001010100110000100101100001110000011101010110111100001100011100101001101001011001111011011000110110110010000101101101001011101100011010010011000000001110000000001111100010011111000110011110101010000001101101110010011000000101111101110100011001010110010101100000110010011110000000010101100110111001100010111100111100001011001101001010101011111011010111111 1000100000111101011011010110001111010000111100000001100000010101111000111011000111111010100100010101110100011100000010010111010011100111110011001000111110110001010001011001000100100101110101110110011110011110011100111111101100000011101111100100011101110001011100000111100110100010111110111000101000010000000010101101101110100110000111011101001000100111010110000111110010110011011010100000011110000000 1100001010000110101100111110111001001000011011010001000100000101010000010001001000111001101110001101111100001011111001111100111100001000001111000100100011100011010010010000001111100110100001000011101011010011101011101001110110000010000000111010010101001110010101010101010010011111011000010010000111100010001101100111000000110010101011010010001011011100010110010100000001011111100101011001111101001101 1100001011110001000001101001001110010001010000001100000110101101101100010000110001111110110110111011000011011100110100000001111000001100110011000101000110000100111101001001011011000110101110011110011001101100001000111100001100100001011101001011011010110100100100011101101110101111000111011100001001001000101011101100000001000001100111100110011011111011001101001011101001001011000110001000010101010110 1011111100111100001101001001101010011001001011011000101101010011011110101001111111101100001101011100101010010111100011110010011101011010011000111010100100111000101001000100101101011011011101001100000010101110011110110000100001100101001110110010010100110110100000010000100010101011001100001110100101100101010011000010111110010100101101101110100000001101110101101110100000111100100111100101100001001110 0001010110001110001010101111111010100010011001001101001001000101110100100100011100010000010110010101100001010110011010100001011100100101011001000110010111111100011111100111101111101101010111010100010000100100000110011110110111100110100001101111010110110011111100111011011110111111100101011001101100110001010111110000101011110101000010010001000110100110100000001100011110101100011100100101001110010001 1101001011100001010101101010100111000011000111111000110111111000011001010000101110000000101101111100010111100011011000000100011100101110110011010101110001101001111110010110100000000100100011110011001010011111100101011110110010001100110000100110010011100110100001101000110000001111001001111101101011101000110011100001101001100010011010010100001100001011000011111111100101100010011100010111110110011111 0101011000010010100000011101000110001010110010110000001110000111100100100111101111101011111101000011000001000010110000101001010110101011001110100110110100110000010101100100000110101101011001011010100100111001100011101101111110010111101011101010110101010111000110100010101111100111000010100011100011111100101111011111101000010100101000101011100011000100000001111100011000101110100010100111010010111100 1011000100110010000101111011101110010101111001000101001110010101101000001000010000010011001111010000110110101111110101100000110111111100001010001000110000100000111101001101000000101010101111011000000111011000011110000001011100000111101110111011011001010111111011010001100010010101000110100011110101110110010100010000100010101100111010011000010011110001000000001010000110011111000000111000111000111111 1011010000101100001001110111010000001000110011010010001111101001000101110011101011110011001010100111011100001011000101100000100110101101100101111011011101000010110011100000101010011000110000110011110001110111000110111011110001011100101010000110011001111110100101011110110101011101111010100000011001011110101111111111001000010010000000110101011100101001110010001111111110101100011010011101110111010101 0000010101000100100011011110111100110010001111000000110111101001111111100110001010110011011001000011001000100110011010110111110100001000100010011010000101100110000101001100110111111011110110010000110101010100000001100010100110100101001111100100010111000011010110010011001110111011010011101010110101010010110111011011000110101110001001110101001011000111101010001111101000000101001111001101110000001101 1010001110111011010001011101111101000111011011111110111101000011110010100111111011010110101111001000011010111111110111000110111110010011110010101100001000000010010100010110010011101110101001101000110100000011010101111010110110011001011111001011000010100011001001101000111101101101001001111110100010101010011000000100100011011011111101101010001110000111111100100011100001000010010001001111100010111000 1111101011010000010101111101100000000100001111101010011111010011110110001100001101111100000001000001011001111001100011110100111011011111000101100101100111111010010001110100110101010011001011010000010011111111110011001010011010101111000010101100010010110000100111111010011110011101001100111001010111000101101010001100101100010111100011011001110100100010011111010011011000111101011010110011000111011101 0111111101100100101110000010000101001000000011101110000001100101110110000001110101100110001011010011100010000010001000000000100000000101100000011111110100110000011000110110111011010001100000110100110010110110101100101001111010001100111000110001111101111010000110010110110010100101010101111010101110000000000011011000010110011100011010110011000000101000111011110010011110110011111101100111100101011000 0101000101111000100010111010001100001101001000101110101000000111111010000001011000010010000101011001110111011001100011001111000001011100101100101001110110101111010111000011101101110011110010011011000100011110010100100110010001100101111111100010101000010010101001100001001110100111110110000111000010000110011011011101000011111001000111111111001110011001000101111001101101011011101101110001100011001111 1101101000001001101011101110001001100011011101000001100000011011111111110011000010100010011010010011100100100011000000011100011011001110110010010010101010100001011011110101110000011100100011101010101010110110111011011100110010010111010011011100011110101000010001100000100000110101001110010010001010111001011010000010000000001001010100000110010100001100110001111001000100100011001100101110110100110000 1010001100011011111110000111011001110111001001001010101001100101011111000011110110000001110111111110000100100000110011001111001111011001011000000011001001000010000110110111000111001011001110000110110000010000011001001010000010010101001000000111111001101100011011001001011110110111110000001001000110010000001111011011010111011110100101100011001100101001000111011110101111110110011000001100000010011011 1111110100101111011100101001110110011101001110101000111111111011010110000000000111011011001001110110011110011010011111111011000101100011010010100101100000011110100100100101100111010100011110110011010010011010010010011001000000010110000100011000000101100001100100101111001011100111111001101001101011001001101001010000110001110011110111010101010010101110000111000101110001110001100100111100110010011101 0001001000100011111100100010111010001110100101000000110100010011000111100100010000101101100100001101010111110111011111010010110010011111010100000111000101011110011101011000100100101010100110001000010101001101001110001110101000111100101000111001010110111010101110000100100111010100111110011100011000011010011111111010100010010010001101111000010111110100001100010111100110101010000010100110111100000111 1011001101100100100001011111101100101110010100001000000000010001100011110111000101101010100011100101101110010000010101110111101111100000111001000000111110000111010101100110100100010101110001111010110110001100111010111100110100100001000001100001011111011100011110101100001101011010100001110010010111101100000100000000000100101011001011001110010000101101010100000110000110101000100000000001011001110011 0101011101100101000100010011111010000001111110000010000011011010101100000001000000001000101001011011101000110100010101011010000000110001110100000100101001110100100111000110110010100111001111011101010110010111110110100100100000110001001011111111110000011100001111001100101111111101001000000111010110111010101111110101101001101111110001111001010101110011111100010101010100011111011010111001001100100111 1000001011001110001010010100111111000111010000100100010110000111001010101111101010110100111111101111001011101111010000110001011111001101010011000001001000101111100101100011010111110011001100001011011110100110010000111010010010001011001000110001110100010100010110101111111101100010011111110001101110000011111110111110011111101001011111001110100000101000110011110000100111111110001100101011000000100101 1111001011001101010000000101100110111111100011100111101100111011001010010110000111001001101111001010011011011111011000010100101010101000010100110101111111101001011100001101011111100100101010100001110011100110001111101101000111111011010111100010100100010011000100001000110110000100111100110000101110011101111010111000101100000101111000111101000110111011010110001110110100110010101111110111001011101010 1100101011111000000000011011000010000001010010001101100100010001000101010101100000000011101010011110101110011111111000000010110000000111010000000010100010100000110001010010001000111100001110111010000000000010110111100110100100000100000000100111101010100100001001011000110011011100111101111110100010010100000110111111010010001111010110011110100000011110001110111100100011110001101010101100010100010010 0100000000110101011010011000011100011011000101001011001011111001110001011000011000100011000001111011101100000100001001011000001000000000101001101111001111010111100001101110100001011110101011011101111000111100100111010001100100100111011111001001000010010000001000010010000110011110101101100000101001100011010110011100001110100100001000000110101110000011001110000010000001110000100001110011000001100111 0110001101111000110111000100010110101010100101011011110000110000100110000100110100100001110011011101101110100111001001101100100011010101111111110111011110101010110111001001010111011011110100000101001001000001111010010001100000111100110000001001101011010000010110000010010110000011010110111100101110100010000110111010011101000000001011101011110011100110100010000010011011000000111111101110001001011101 1010000101100011100111011111011100101100010000001011001110000101101110011101100100001110011111000111111111000011001100011010100000000011100000111001010111010100001111010110100000001111100101111111000010100100011100111011100101101100111000000111001011011110001110001001100011011011110000101000101000000101101110111111101010111011010000110100001111010010000001111001001101000010101011101010010111011100 1101100101001001000110111110100111010001001110000010111110001010001010101101110110010101001101000101010110101000101010010010111000000111110001110100000101110110101100011001111001100000111100011110011000001011100010100010110111000010010001101110110100110000110110001010111100010010001100110000011000001110000000111101101110101101010100011001011000111000101111100110011110001101111101001011111101101010 0010100000011010010000101001001010011000100101000010001011010000011001101011111001010110111000001000111110111010101001000111101001000010001101011111011111011000011001001100110011100011100000001000110101110100100001010111101010011110111000001011111000010100111101010010001011011011000101010011110111001011101010111100010110000110101100111100110101001011000011001110011001110010100101100010001110010010 1001001111000110100100000000100101110011101010011011110101001000001001001010101001001100111100011100111001011011010110100101000000010110000010011101001101001101101011110110001010010110011110110000001010000111010111000110100100100000000000100100001001110111111100010001011111101000001000110111011100000110011000000001110110111101111000100010000001000101000111010000111100001101000101000111111100011110 0110111110110010111101011000110001100001001111101001101010001101110010000000111001010011010000010111010010001000100100101100000000101101111110010110001000011101010001011111011011110010110000101100100011011011100011001101010011100010001011100011010001011010101111011001010010000001010001101111001100011110111101101111011110001101100100000100111100011110000101101001101000100000001001010101011000111010 1011011101111100001110110001100000011011110000100111010110001111100101100110100111110110011101100000011000011111000110111010000011011000010000101010000111111001001001000101000010001000111000000010011100100000001000111010111101101101111000001010011000101101111101001011000111101100110110110101000001111101100100011011011001101100100101111110101001010111111011110010001110001001010101100100111110011111 1111011110011100011000111000010000011100111110111100111001100111100010101100000110101010100110011011001001111011000111111000010010110101000011010100011100111000010010110010101101110001010000010011001101000111100110001101110001010000101111001010000000011000110110110011110110101001011011111000100001101001011101111101111110010100000000100110011110011000100110101110011001100011110100110110111010100101 0110101000011111111000010011110001000011000101101010001100011110100011111110011011011101111000001100010001000000010110110100000010111011100111111001100101011010000010001011111001001001011110111011001111011100100110010010110111100000100011001100110011100001010010100010010111000100101010110010000111000011101110100000111001101001111111011000011111000101111000011010100100000110101001011001110111001011 0010110000000100101101010011100000001011010100111110111001110101011011001010001111111001101100100111011111101101010111100011100111100010110010111011101111001000101110110101000100010101110011111100001101010110011111001110011110111100000011111000101001001000100010000000110110110000111101110111010110101011011101100111001001011110111010010110001011010101100011011010000111001011111110000010010100111011 0111001001100010100011010001000101111001101011010100001011110010111000011100000010000100000010110000000000100100001011110001000001010011100111111001110001000000000100001111000110111100001111101100000110110001110011000100010101111011100000101001110100011101100111000011011010001010001111000110110000001001001101000011100101010011001101110101100000110010011001111001100001100010101001000010001010011100 0001100110110100001001010101000101010010101100010110100110100101100010101110001001001000101001110100100000100111110010101111101011100111011111101010100111001110100011010001000111100000100110010111001110000101000101001111101001100101011011010000111011101001000101001110110011011010100010000111000011101001001110110010010110001100101001000010101110110101010010110000110101101011011010100010110110110100 0100110101111110111001101000001000101001100101000001111111111001110011010000011100101010011001110101000001110001110010000100110011110100001101111111010011000100000011110101100111111010100111010000100001011000010011101001001010111010001001010001100100100001011011110101000010101101100011100101010010101010001101100111110111100101100100101011111011010001111101100110110111000111100100101011001001100111 0000111111010111101000101010110101101110100100011101000011110010001110011110110110101000111100100110001110100110101100101010010100111101011001101010010000011011000101000111110111011100000101001011000000010010011110110011101001011110100001110010110111010110001100111111001111000000100000100010100010001110100111101011011101001011011001110000010001000010011101001111101001011110001001000011011010100001 0100111100000110100110001010011110111111010000010101001110110100110010001110001011010011100010010000010111100000001000001110101000100100010000000001100110001101111100011110010101001110110101001110001100111011000111110101011100110110010100011010000111001001101011110111111011001111010000011001001010110100111010000000001101001101110110010001110101010010111111111100100101000000111100111011011111001111 0010100100110101111111101000111111011111101100110111001111001011010011010110101110111111111101000111011010001011111110101010111010110111101101011110100000011010010110100110010000111011010010010001010111100111011011000111110100101000010110011001111111111101001110110011000100100100010110101100101010011010001111101000100111101111001011010010110000010010100101000001001100010111001100111011011110010101 1011000101001000000010010111010000000101110001001000101111110111110000111011000110100101010110111101100010110000110001000100100001011011001111010010000110111000100000101101010011000000001100011001110011011010110001101000011100111101111110110001001000100010011010111011010010011110000111101110110011101110111101111101111100010101011000100110101100101110111011111011110011001111010100101000101100100100 1100000111110100011011011101001100111001010101001100011001101111100010011010000111100001010101000000000001111000111100100010111000101111100001001001000100001001000110000100000110001011000000011100100000101000001000000111000111101000000001110101001011001011010010101000000111001111000001001101001111100011001000011010111110000111101000010011000010011100001011100110000011100110110010100100001011101110 0110010011110010101011010100111000001001110100001100001110110010011000101010111011100110011100101000100110101010011111100011111101101011000111000101111100000110000110111010101111110100101010001110110001110001100101001011101011001011010001111000100011000111011110101000100011010101011001010110111101001101001010001111010011110011100100110010110001011000110111101101110000110100000110010111111101111111 1000000011011000101100110000111001000111011100100111100001101010010010100110100011100011100001111000111110001010111101000101111011100011011000101101011011100101111001001101111111101010010011100001100101111111001110000101001011000010000101000111111001001101000100011101100001110110010000110010110110111010010000000010001111000100101101100101011111000101101111010000110111111111000010100011000010111010 0011100000011100010100111111010110001101001111101110111011011000011101011100111000110000010000111001011011101010100110001110011110110001001110101111111010111111110001111100100000000101101010000000000001101010111001001001001101011100101111011110010001100000000011010101110101101100101010000011101011100011011011110100010110110011100011100000100100101111001000011100110000000010101001100111101000101110 1001000101000001101110011011100001100100011110011110010111010001101100001011001011000011111101101001100010000000110011000100110001010100101001110001000000101110100100111010100101110001010100010110001010110000010111001001001101000011010000001100000101101010011100000011111001001110011000000000000011000101100100110111000010100111001010110100111110111010110101000010100001011000110010001100011001011110 0111010100110111101001100110001001110110011000100110000001011011111000110011111010100111010111011101011111100110111001000010011110000000000111000110111110110001011101111010101101010001100110110110101100110100110100011000111001110011111110100110000010011100000110100100000111111100001101000000110101010001000111011000011000100101001010110000010011011100011010011001011110011011100001110110111010100011 1111100001110011000000001110110101101101010100001111011110100001011001110111000111110100000111111010111001000011111000101000000011100000000000001110000101111110011001001010100100010000001111110110111000111010001000111100111110010110010100000101111100010110101010011000111001110101101011000001111010100100101101110110101011101010001000111011000100011010000011110110001011000101111101100001001011001010 1110111100111100011111100010000001000000000011000101000101101011000111100111100111111010101011001000010110111111110011001010110001101110010110011101111001110111000110101000111011000111011011001011000001000110110001001110100010101111011011010000111001101100111111100000001111001001001010000111001101110010010110101100110100010111100010001111100011011110110100001000111000111010100001110001011100010101 1111110111011010011111011111110000101010111101001111001100101111110110101010100001011100110111100010110010100000011111001010011110011011101110111001000010011101100001001111110111010001011001001111001101100011011011011000010000100011010100100110001110011110100110100000100101010011010000101111101011001011010100001010010010011000111011101101100111110100101010000100000011010101110010100100001010101011 1101000011000100010101000000011010111000100011011111011110110111010001001000001100101011010001010101000011110000101110000110110010110010111111011111001101101010101000001000110010011010000100101010111011101011010111010101100100011001110010001110000010000000001101111111111011110010010101011100010101000101100001100011010101101111100101110010100000010111010111100100110110011110011110001000100110010010 0111111111100000100011001100101100101001100111000100011110000000111000111110011111000001010111001010011111110010010111010101111010100111101011011011010000000111101010100010110000110111101111000101101110001010010011100001001100001101011101110100001000111110000100100110111001110000011011001001011111000000000001011000100100000110101100010110111000010100111000011011010000010110011000111111001011000001 1001110101100011010111110111110100001101111000101000000101011011101000001100010011011000111101000101001000010111101011111011001111001000011000011011110111011001010100000101010100110101111100011110110011001111110101100010010101011001110101001000010010001000100000110110100100000111100111100111001001011110110001001110001100111101010000010101111111010110000110000100011110010100110011001111110001110110 1011111010001000000011111001011010101010001101110110100010000111011010111011101100001111010110000111001000110100110100010110101100000111011111110101110011001001000100100010110000100010000010000000011101100100000010011011001101100110110100011011101001010111011111000000011111111100101011111111000011001011001111110000101110011110001011000011011101001000111101000011011011101001010111101110011100001101 0100000001001010000011011001110000100011010011000101001110111000101001011111110010011001000111001001110001100001001100010110100101001011001111101101101001010000101110011101001111100010010011011010110011001100110100000111011100000011100000001101100111110011000010000101010110000011110110000110000001010111100100001100110000100000111100101010110111110111100010110000000000010101100111001011100000101001 1110010001110011000110100101110011110110000110000111101110010011000110011101111100110101111111010011100010001111110011111111100100010111011111111010001111000000011000100100101110100010101011000001010110100110100101101010101111011110100001010000011111001100110110101100101111000011111011000111000000101111010000010100001001101110111000100100011110000111010001100011101111110110101101000001101011111000 0010011100001100001001000110001011101111100011100101011011001100100110101000100100001010111001000010100000101000111100011111111011100000111000101010011111110011111111101101010010010010110111010111011001100001001010100010110001010000111100111010111000001010011101110101000010000010100011111101001010101010001011010000000010001110011110001101101100010010101111100110110100000110100101000011100010001010 1101001001101111111110011111000101100110000111110101100100001000100110101010110010100101110011111010111000110110110011001000011001010011001110000010101101011100110010010010100001011101111110101010010110101111011101111011010000110100110001011000011101101100101000000110100100100110000000100001100011111111001101111101011110011100000001010011111011110011111010110101010100000101101110000001001111001000 0101101001111101101101101111011110010011100011111010110101000100001010111000001100010111011010000000111110100110000001001001010010001101101000110101001100010100011111010001111110011011010001011010010000011001000111111001010000010110111001001101001010111010010001111101011111011010011010000100100110001010110001110011100011111010110001110001011000010010011011001101110101111100000000110110001001111100 1001110001010110000110100110011011000100010101110010100011100110100001111010011100110100011100010101101001001111110101110010101011001001000101111000010100011011100111101100110101111010101100010111110001100111101111100000001101000000001111010010111111001111001000111010110010010010011101011011011100010000111000010000101001011110011001101011111111111010011100001110001110000011110111001111110100011010 1011000000100111101101010111011001110111000011011001011010100101100000000110100000011110001110000101001011011000010010101111010010001101011100011000011110000100101110100100000100001101011011111101001011100110010110111011001110011101101101011000111000000110010000000110110101101100000011101110110111110000010111100110001010110000101000110101111111111001000010101101110000010000000110010100001010010010 0001110000111110111100010011100111100111101100101110100100011101000111100001110010010000000001101101111010111100111011010010111110100000010110000101111001111101000110110000101100010011101101010000100111000010001001011000110101010010000011001011010101110010100101001011100101011011011110110111001010110000010000110100111001111011101010111111011011001000010000010001111110011000100000001100111110001010 0101101110100001011001100010011001111001011110110110100111010100000000110001111011100001000000011010110010100111010011010001101100010100000010001110010111101001101010000110110011000100010111111000111100010011010100011010111100000111011100011110100101000111000001000101010000110000011110010110110111010011010011110111000111011000101001011101001000111100101110110000100110100011101010110100111001001100 1110101000101001110011101111011110000000110111011001001110010000101001111001011110010011110100100000110100001100111000100001110011101010110100000111010111101010101000000011110010100010010101001001111010100101010001011001010000001001011001010001010010001011101000010101000011010010110100101101101011111110100000000001011101000001100100101001001100010110100111000101001101110101001000101000000110000011 0110011000000010000110000100011011111001010101000111110000011100001010110101000000010011001110001000100100011110111100011000010100011001001111111111100011010111110000101110010111101010010110001111111000110100101111001111111001101000010010110101011101001110110011100011001100010011000101111001011110001100100000101000011110001111011111100100010000110010001100000100000111110011000010000010111001100111 1010011011101101101101011100010010101010000100101000110001010000110110110000110011000111101100111110101001111100000111010110000111101011111001101011000100011101100101101111111010111001001001100110001011001111001101001101100110011011101000000000001101001101010101101100011001000000001001110001110011111010000110011110001011100100110000000010011100111010000110101111001101001000000010001001100011001001 0100110011011000010110111000111011101111101101001000100011000110010110111000010101001111001000100100110110111100000000100101111110011101011001111010010101010110001001010001100101010000111110101011110101000100111100100110111000100101011001110101001001111111001010001101111010001111010001010100010011101100011101111001111001000000111110010001101001011011111001001101100111001000011010010111001101011101 0010011101000010101011111011011111011010000111011011110001011011110000111001011110010101000100011100001101111111011011000011001100101111011000101001010111101000011100011100010111011010001001100110001010011000101011000100100111111101011011011011001100011010100111101000101101110100010101011111101111011011100001110011011110001001110001110101100101110110101101000010110101100010100000101101101001100101 1000110100011110001001010011001111111010011001100100110110110011011000000110000010010100100011011111101010001000110110101010100101011000101000110110000011100101110100110011011001010111111110100110010100100110101101110011001001111010011111010111000111101000110010000000000000110100101010111011001101101011000000110110111100001001100011001110001000101100010001001100010100011111000100000101000100001100 1100000010100111010110100111111101010001011100011010001000110110101011000101001110001111010010001001001010100000111110101000010001010011001010000100000011000010111001011110000100001100111101010011000001011100111001101001110010110100001001110100001101011011100000011001001001100100110010101000101101000011010011110010001110100100001110010011100111000111111101100001100110000111000100000010010101111111 1001111101011110111001111110100000011110011100001101110110110010111100100101001000110000000011000100011011110100000111111011100101000011111011110010001001100001000110101100000011101000010001010011101101100011100001101101010111001001110001100100000110010010001110001000100010010000011110110101010110000010110000100010110011011100011001010111011000110111011001101000100111001101111101111000010101111001 1110010100001010101100100000001100100010010111011000101100010101000000000010110000011011000011010011100111000000110011101001111010010100001110100001100101001100011111110100010101010110111011110001011100111110111000011111110011111100111110010111110011101101000110010000110001100000100000110000000110011110000111111110101101001001110111110111000000111001000101111101101110000111011101011100011111111001 1010011011000000010001111000101110000100110010011001000110100111001101110110101111111100111000001011010011111011001110100110011101110000011001100001110001111011001001100011000000001011010111101100100000111101000010010100101110000001010111111100100000001100101010001001011001010000010010000010100101000010100000101101000111111110101100010110110001001100111011001100101000010100001111001001110000010111 0001000001100101100011011101011110111100011100101110101001110000111100110000110100001100000111000011100000111000001111111001011010000110100001110100001001010100000010111110100100110001100010100110010010010011111010011001010110000010000110111001000000011000000111110010010100011000101000001101100110111101000110101001011001001011001101110011011110111010111111011000011010101011101111001001000100010010 0100101100101010010111010110100110011100011001100101100011100101110100101100111000010000110001100101010101001011111101110001001001100001110111010000000010110111001000100001000001011110011101010111000000101110110000010100010010011101011100011001000111101101101110011011110001010111011111110000101100001010000110000101000011100010001011011111010001111101001010100010001001000110011001010101101101011000 0010010001010100001110111111110001100011010010110100101101110010010100111010111100000101111100010011000101001001001111001000011110100000010011001000111111100101101111010010111100110110100000011101010110100000110011000100100110101010111000101010001111001110001100001011111111100011111111101011011111110001000101010110110101000111000001101000001000010010010111010000100000000010110001000001110010010111
cTrader

【cTrader】価格データをcsvファイルで保存する【Tools】

7/20/2021

4年以上前の記事です。内容が古くなっている可能性があります。

cTraderではメニューから価格データのエクスポートができない

cTraderにはヒストリーセンターがありません

MT4/5にはヒストリーセンターという機能があり、価格データの編集、インポートやエクスポートが簡単に行えるようになっています。

しかしcTraderにはこのような機能がなく、チャートに表示させることができるのはサーバーから配信される通貨ペアと価格のみで、手元のデータを取り込んでチャートに表示させるようなことはできません。

それだけならまだしもチャートに表示された価格データをcsvファイルのような形でエクスポートすることすらできないのです。

ここは明らかにMT4/5と比べるとデメリットと言えるでしょう。

 

エクスポートくらいはできるようにしたい

手元のデータをチャートに表示させるのはちょっと大変すぎますが、データのエクスポートくらいであればcBotでなんとかできそうです。

せっかくTickデータや3分足みたいな変な時間足も使えるcTrader使ってるんだからデータをエクスポートして他のツールで使ってみたいという人もいるでしょう。

そんな人のために、というかそんな自分のために価格データをcsvファイルでダウンロードするためのcBotを作成しました。

 

 

PriceDataDownloader

機能概要

バックテストで動かすことで指定した時間足のデータをcsvファイルでエクスポートします。

バックテスト期間中の時間足を保存する形になりますので、データが欲しい期間をバックテスト期間として設定してください。

時間足は一月1ファイル、Tickデータは1日1ファイルにまとまり、それぞれ202106.csvや20210701.csvといった”年月(日).csv”というファイル名になります。1ファイルに月足、日足1本分をまとめておく形です。

ファイルはマイドキュメントのcAlgo\ajToolsFile\PriceData\ブローカー名\シンボル名\時間足 のフォルダに保存されます。フォルダがなけりゃ勝手に作ります。

稼働させるチャートに関係なく、パラメータで設定した通貨ペア一覧の指定時間足の価格データを一気にダウンロードします。

 

 

パラメータ

SymbolList

データをダウンロードしたい通貨ペア名をコンマ区切りで入力してください。(Tickデータを保存する場合は稼働チャートの通貨のみにしておいた方がいいかもしれません。複数一気にやろうとすると古いデータが取得できないことがあるようです。)

TickData

Tickデータを保存したいときはここをYesに指定します。デフォルトはNo。これをYesにしたら必ずバックテストで使用するデータを”tick data from Server (accurate)”にする必要があります。(じゃないと止まります)

TimeFrame

時間足を指定します。3分足みたいな変な時間足や5Tick足のようなティック数基準で区切る足も保存できます。(練行足とPips足はバックテスト自体未対応なので保存不可)TickDataがYesのときはこのパラメータは無視されます。

UTC+

記録する時間のUTCオフセット(時差)を指定します。デフォルトの0だとUTC時刻で保存されます。今後ブログで配布するツールではUTC+0のデータを使用します。時差情報はファイルに出力されないため、わからなくならないよう特別な理由がない限り0のままの保存をお勧めします。

AddHeader

ファイルの1行目にタイトル行を付記するか指定します。デフォルトはYesでヘッダがつきます。あとで結合したいときなどはNoにしておいた方が使いやすいと思います。

OverWrite

すでに保存されてるデータがある場合、上書きするかどうか指定します。デフォルトはNoです。Yesだとすべて上書き、Noだともっとも最近の月(日)のデータのみ上書きします。(最新データファイルは最終日最終時間まで保存されてない可能性があるため常に上書きされます)

このパラメータがYesの場合すでに保存されてるものより古いデータは保存されません。現在保存されているものよりも古いデータをダウンロードしたいときやUTC+やAddHeaderなどのパラメータを変更して再ダウンロードする際はこのパラメータをYesにするのを忘れないようにしてください。

 

ダウンロード

ファイル保存するために、cBotからファイルシステムへのアクセス権限を取得してます。起動時に下記ウィンドウが出ますので”許可”を押してください。(日本語設定だと訳が微妙ですが、「cBotがファイルシステムにアクセスするのを許可しますか?」ってことです。)

 

 

その他のツール(cBotやIndicator)はこちら

他にも色々作ってますのでよろしければどうぞ。


まだコメントはありません

新しいコメント

コメントは承認後に公開されます。承認まで次のコメントは投稿できません。

cTrader's Life

© 2025 ajinori