1101011011010100111100101001000010010010001010001100010001000100111111111100010111101001010000111101110111111010110011011001001000011101101100000010010010101111110001101111010000001100010111000110100111111101101111100000100110010000000111111100110011110100010100011101111110010111000101010011110011110001011011100010101101111011010010101000000001010000001100000111001011010010100100100111011111101110 0000001100110000010101111000100011001101100011000110001001000111111110100001101001001010001111000101000111010011101011111011100001111110001100011110101011100010010110000100110100011011100001000000011010111000001110101000011110000110011011111001100111100000010010100111010000001111000001111011011010101000111000000100001001000001001111101101000000100101101101011110110101110000011111111100110110101001 1100001000011011110110000000010100001111001010000011101110110111001110101101101001101101101110100011001010010011100101111010111001011000110001011011011101101000101000011101010111011110011111001000101101001110011110111101111011001101101101000111011001001110100101001010001011000011101100100010110011111011000000011001010111010101000010010000000000100110000010011101110000001101001110010110101110111010 0111110100100101111010101111001010011101110010000101000100010101011100101110010010010110001111010010011111000010101110000000101101100010101100110111001010010010000011110110111111000101110101000010011110001000010011111100111110000010011111111000011100100011101001000010110101010111110111011010010111100001010100101001011001100000100000110010011010010110000111011011011110100101001100000011000001101000 0101111101110001100011011000100010101000101000110001011011111011111111001101111000110110010001100010001111000001100101000100110000111000111010110110010000100110010111110010001000011101010011010000111011000001111110101100001100000100010101001001100100010000111011110001011001100110100100101011011111010111111100001100001101111010011000011000110110011011010100100101000111000110011010001010111001111010 0111001101101010111100101001110100101110101001100100100100010010111111010001100010001100011101111001100110110110111001110111001000001100110111011100011111010111001000011110011100010010100010110100111100000000100100000001011010111100000110001001001101001000111111101000000101101011000110111001111110010011111100011101000010000100010101101100011000011100001001000000011110110110001110011001110000111010 0011100111000010111101011011000110011001100001011100000000100111001111010000011101001101000000000111111110110010010101111010010110001000000001111011100100001111111101100011000000010101000111000011011010001001010011001001110110100100010011010011000111010000110000000011101001010001101011000100101010110110011000111100010101011000111011011010010000011011000110101010010010101101101011010011001100011001 0001110000010001001000100011110111110010011001100001000000000010010100110000110011011111101010001110110011111010011010000110011100010101100111110111110111000011010010010100010111101100010110110111110011101111100000011011000110000011001110110101101001100001110001000111001110000011011010001101001100001010010111100011000000100110010011100011110101110100110010101100100111101011001010000111001010000000 0010100110010101011000011100011101011110000010001001010111001110011000101000110001110110100010011000001110000101110110101010111011011100011010010101101001010011110001110101010100011011001000011000011011010011001010111000101010011000010101110101000111001100100011101100100010110101000100100001100110110000111110010010011111100101101100100110010011000100001101011010000101101101111111001000011000111100 1001101000100000100011010111100011100001001001010010000001010011010000011100001001101000001110110111100111110001001011010101101100011011110111110110101000110001110001111111111000011110010010010101100010110000010010110000010010001100100101110010011111011010001011011010001101110111101100110001000011110001111001101101110110010010010101101001010001101000011101000111011010011001101100100111101100100000 1100001011001010001011001010011010110011101000110111010000111011011011101010111010010010010011011010101010001010000100000111110110010001100000110111100111001110001101000010100001011111011100101010110110110100011111001010010011101001100110011010111110110101110101111100000010011011111111010000000101000011000000001011010001111001101011000110100100101000010100111111100100100001111101001100101101001111 1100010100110000111011001110100000101101011101100000000111001100110010111101100000010101110011100111000110001100111111000100001101010010100110000011010001000111100101011010001101110111110100011101101100111101010001110110001011001101011001100010011110000111101001010111110010010100110011111011000000100000001010001100100001000000000110000011010010101010101001100111010010101111000000110110010000110011 1000010110001001100100000011000111101000001111111011101010110101100110011101011000001000000011100110011101000010111011000000011010111010110110011011101011101100111010011100100111101100101111001100110111010101011100000101000011110001000101011001101100001011000011011111010001001001111100010101011101011101111001111101011010110110110111110010100000111100011111111110010000101001101100010010011111101001 0011001100011000000110110000000110001000101101111110110100000111001010111100101101001011011101101101010010001110011110000111111011001111000111001111000100110100111100110011001011010000110010011010000111000100010110110100001110111110011010111101100000111001110101101000111000001011010000100010111010100111101010110011111100100100101001110110100111000011010001011101001011111001101010100110010110001111 1110111111111010010001110001110100010111011011111100110001001111011000011101111010110001100000100011000110011101001011110100101100010100000101111010111110011111000010111001001011100010011101100111101101110001100010011010001100011001010110011111001001100010010111010110000110010100011111010000011000101100000010000011101011110001011010101101011011100001010011001101000010111100100100111010001011110101 0010011111110110001101010011010101000001010111100001001001001000100010000110110111001110101101011100110010001101110100010001110010001101000010110010001000010001011000000111110000011000110111101110000000001101100110000000111011111011000101111100010011111011001001100001101111111010100010111010110001011100101011011000011001100101100011000010000011010011011111001011100010111110001011001100001011100001 1000100011110111011011001001001100011110101001110111101010100011000100111110101101011111111001000110111000110100100101001111000010011110011101101000110110100000011001101101001001100101111110101011110101101011010111011111110101110100011100101100011110011011011001111001010000111010001011000011111100100100100101001011010001011000111011000001111001101000010100110011010100110001001111101101110101001000 1100110000100101100111101100011101101111101100110010000010100100111100101000100110010000001000011100000100011000110000111111011101001000000010101101010111011111101000111000000111101101010111010000001111110100001111000011110110111011011110010100000110110000000001110010010000000011011001101010000010101011000000011100111100010011000111000111010110010000101100110111111110001011011010110101010001111010 1010001111100010000001011011011100100011010010000001011000001111111001101101110001011010110101011110111010101100000011101101101111010111110110011100111110111100101000011100001011000000100011010100010010001101110010101011001110010110110000010000110101011011111100110101001011011011110000001100011111010001100010101111110011111000010100010100111011000100010110001111110011000101010000000010011011001100 0011111111000110001111110100011001001111001001101101110110101010010000001111000111110011011011011001011011111000011001101110001010101001010010000000100010010001111110000010001101011111010100110000000010100111001111001111101110010100100011111010100101010000001101010100100010010111101010000001000101010100111010110000001011010001110110000111000110110010001110010110001010110010110011111111111101111101 0010111101101000110110000000100100011000100001111010000010101110110000110011101110010100010110000001011111111000111100110101100110001111110010011001110001010000101111000110110010100000100111001000110010101110100110100100011001110000010101101100001010100100101011000010011010110001101100001101000111010010101101110011011100001001111100010101000011111010010010100000011101111111000011000000110000100100 0101101110101100100011011111110101001001111001000010000011000110001001101011111010010011000110011011011011001110110100000000111000100010110000111001101010111110110000111110011011001000011111111001100100000011101111111100000000101000011010100001001100001100101000100000000001000011101001010001100011111000001101110111111001000010101000010010000110000110011000011001110101010001110000100101110011110001 1000111101100011011000011001111010000001111001101100011111001000010101110010001011111011010111101011010001111111011110110101011101101101110000111001101000101101000000101010111101011000001100000000010010000101001000001111110000010001100010010010110111000110011110010010100110001101010011000001101010110001010111111100011111010011111101101100111000010100010011110001111110011010010100001010000100110111 0110110011101101001101000110100010110111101101111001101000011100010001011111110001001110001001001101100001100001110001001101110011011011000000011101111110100111110010111011101111010011110111101001001011110001011010001111111101110101000001000000011011011011010101111011100010001000000000101001101001001101101100011101010011110010110000101100100111010010011001000010111110101111010000111011111000111100 0000101000011101110100010010100110111000011011011110110111101010110101100001001010011100101011101011010101110010010110000000010101001110100010101111001111101100011100000010110110011001101100000110110011110011100110000100011111111000100010110110111011110100100010010000110001011111001010110000101001010110100100101101101001010101110010011010100010100000101010101001011101100101011100100001010100100000 1101101001000101010111001000100011000000000001110001100100011100011010100000101000110101001111001011011101011001001000000010000010001010000001001110000001101111100011111100000100101100100001011100110101001100100100111111000110101100011111100110111000001011010100101100101101001010011111001011011011010010010011011011000001011110001001011001011101011000011011010001011010011000100111101111100111000011 1111100100110010010011110101111100001001001010011001110011101111100010001001000000010010000011001111011001111111000110000110011100010000111011110010111100010011101110111110110011101110101000001101101001110001011110111100010000100000101010001000010000100010011100001110011000011011011100001011010011100111101110001010001001100000110001100110010000011101110100100010111101111001011010110000101101101011 0110111010011101000000011000100101110101001000110100011001101101001000001100011111101011111001011110000010101100111010001100001100001100101100100110100001011101001110011110010011010000010011011000011011011000100010111001101011010101110111001000011111001000001011010111011001001000011010010000011001011101000000101001010011100001000010011110110110100001101110011011001001010111010100100001100001011100 1011011111110101101100001010001011001011001110011011101101011100111100010100011001010001101010100100011100010100000000000001101111001100001101101101011011111011011101001110010100001101101110011010100110111010111010111010011101011110101100011000101110010000010111111010011000010010100010101110111001011010101100001100000111111000110111101001101101001111111001100001110000000000111111000111111010111100 1000101011110100010111110110001110101000000100000110011000000000001101110111011010000110010100010101001001110110100101100001101001001110001100101011100111011001110000000001000011010011000011100100001110100101111000001010011100111010011001001010111010001011001110001000110111100111100110011101100001110001000100111001101111011111011111000110011101000001110110101010000000010011100011001110111011011011 1110111011110110101001000000011001011110100110110010111101001000001101000000101111101010000110111001100110000100110001111110101100001011001011001101100010100010011001010111001011001100000000010001011111000111000110111110000000110010110110101101000101111011111101100001011110101111110101111010001000001110100001110110101001010110000111010101101111100000111011010001100101001011111010101111100010100010 0101011100000011010000100100100100001011000010101101100001111010111111100000101011111111001000110101010110110101000100110101111010100101101010101110110001001111101010010101111010001101101000101110010100100101111100111101011101001011000010110100111010100010010110110100001000110000001001000010001111011000001001111111110101100100111101001111000101110101111100011101010010110001110110000000000001001111 0000001001010110000111110101110110111010000001101011010111000111000010010010001000101011110001100001000100011000110011001111000001010001000001011110010101100111011110101111101011011011010010110111010001110011100010010100000100010101100111111011011001101011011010100011111101110110001000111111100101000111011111111110010011111001000101100100001111111011011111001101000001001000010100010110001011000100 1011101110111010011101110010110000010110101010010000001111011011010001100100100110100101111010010001100101101010110110001110110001100010100000011111000101100010000101011111101110110111010000110110110100000101011011100110100110011000001110100100110101110010000101001100000001101000110111011100111110100101011110100100111110011001000000010110010001101001110101100100110001011100000111011111001010111111 1101000001111010001111011011101011100111001001011111111011100111111100001000000001100100100010101011011100101101111111100001110011111111101010000101011101011111111110111010110110100100011001111011001101010111101111011010001011010111100111011000100111000101001010110000110111101001000101110111100011100010000001100010100110001111111100000011010100110100010100101011100011011010111001111001111110111010 1000111010001110010110100101100000110010000110011100011010110011101101010110101111110011000100111111110111001011010001110010010010110110101010000000011000110111001110100001011001111101111000010101011100001001010001100100001000110100100010111000011010010100101110011110100010010001010111010011010010111001101101110001001111011001010011100011000010010100110000110000111100011110000001010100111110101111 0000001110100100010111010011101100000110110111111100000100010001000100101100000001001011100011110110111000111011100010101100000000101011101100111000000010001110001110111101011100100100100000111000100111010100001001011010000000110010010010000001011110011110101000000100010110111010001110111110101001010111111101111111101101001111111000111110110010011000011001101111111111000001001011111010011110110010 1111110010111110001111100011100111111011101110111111000100010011110001110010101000011110010010010001011010100010100101001001110001100000010110101010011101001111101100011010100001010100011100011111110100001001101110000001101101001111011110001001010010101111101100001101000011100110111011011001001011110010110011110000101110111110010110100001011100010100001100010110101111011001100110001010011000111101 0100110010100100010101110111101101001101110101101111110100111010011011010001010111101011101101010001010001010001101001110100110011101010011101110011010100100000100110101110100101111110111000001111010001100111101001110101100010010011011100010001101011101000011101000000111111010111001110111000011011111001111101110011001011111100101011000110101111011011110011001101101010010110110110000000010011110000 1100111001110010011110001100001010101010010001000001000110101000110110100101101010010101101011110101111111000010011010101101010110011111000010001001000010110011010000110000010110111111001100111011010001011101110110111011011001111001100011001011000011000001000001010000000111111011111011101100111000111010001001011111111100111111111010100101001100111111001000000011000110110111111011011010001111100100 0110100001001001101110001100100010111001101010101100001111001111100111101101111011001101010111010000000100100011100010110111100000110001111000000011001000110111000010010111010010100000000001001010000001100011100111101000101101100011000100001101001010110111101001111011110000100000101100011001110111010101010001001111101111110100111010010011001110011000011001000010000011111101101100110000011010100100 1100001000111101000110001010011110001111001010111100100111110011100101101100011111001010111011001100101000010011100110000110111011100001011100110000010000100110001101111110001111101011110111111010001001111111010000011010001001101010001011011000111000011011001011011110010001101000011111101011011111110010010101000100001101000001001001001011110000000100101110010011110110011010011011100010111000011100 0010111000001100010101011111101001010000001111100001001111010111001000101010000010011101010100111110111001100010011101111011110010001000001101010000011111001001011011001111000100000010100100100001100101000001000100110010001101111011111001111111000000111100100101110110100011101011010110000011011111110010110101010000011011010011100000101011010101111011111100100110011001100101010001101101000011001001 1100000001101000111010100010011111111111011111100010001111111111110110010000101111110001011101010011111010000111001111111101100100101101100110001101110010100101010101111000010100111100011010010100000001100001010100111101001011110100100100101010000111101101101111001010101011000111011111010100111111111110011111011110111111101110101101000000010001001000111110000101000011110010101011111110101010001111 0110010100111010110010000011101101111010111011110000111010011010110000001101100100001001001000011111111111111000001100110011111001000011011111100011111111101100011001101101010010010110010110110000101001010000110010011010111101110001100111001010111111011111011101010111010110100011011010010011111010101001101011110110000000100000100100010001011001111001101011010010101101011101100101110000110011111000 0100000111101101000000011000010100101011011111000100111101100001000111101100101011000111110011101000111001000010000101011100001101110011001101010001011011110101110101101110110110111110101110010111011110100000000010001001011110011000110100100011000101111010100100101111110001011101010011101111011001011100001000111111010100111011101011011101101101001111000111011111110100011100010001000011000010100001 1001001101011000011100010011111010101001000001100000010101011100001100101101100101110011100111101010111001101110001101111111000111000101100011101111000110110110110001001110101111110100111010110100000101100001100111001111111010100111101101011111101000100001100101110110010110011101000111000000000110100111011111101101100001010100010101011111100111101001101100101010101110110000100001000110101000001001 0111000110010000111011111001000010011011110000001010110110010001110000001010100001100101100101110000000100010000111011010011000000100100010101110010100101010001001001000101001100110111001100010011101000010110001110110100101000110110001110010001101011111011110000101011000110000000011110000000010001011001011111010011001000100001001100000001000010110001111001001111101001001011110011001110001111001101 0100101111001110011110001110000011110101101011100010110011000100011001011000001010010001001011100111010011010000001001000010101010001011011010101000101100101100111001001100111011111111010100111010101001010001100111101010110101001011011001011001110101011101011110110101001110101101110111100001001011111001000101111111110000101111100101111101111111000000110010001011101001010010111111101110000010100011 1010110001100011011100001011101001110001110001111010100010011101110000101011111110110011000000101100001100001001001001010100010110000011011100101000100010010111001111101101001110000100001101100011011001111001111100111110000010010110101001101011110110110000100111011101101100000110101100110011001101000000111101110010101001010001000011011001110000100101110101100010001000111100100100101111000110011000 0100110101110100111000110010111100100100100000000110011101101100111010010000111100110011111010000010111111101111100101111000110010000010000110110001000011000101001001000001001110101000001010001111001101000011010000111110000010000111000101011010100001001000111111100011010010000011000010110011001000100010001100011010101011110001000100111000011011101011100110101110000100110010010011101101001011100000 1011100011101101010111101100011001100100110111110111101111110111101101000110101100010100100011010010100000010000001001101011011001011001010100110110100110110010101110100011000111010100010000110100110100001101010100110001101110111101011111001000000100101101100101100010000101010000001000001100010000101001111001010100100110000101100101001011011001111010111010011100110010110010110100101000001011011100 1011010010001110101011100011100110110110010011001111001010000111100101000000110111110111010001101111010010111100111110010000100101110110000110011110010010001110111111000111111001001010110001111000110111111101010101000110010110000100110110110011111011011111000101011000111111100000110011110110110011101010001101011010010010001111111011101100001011011101000000111000100001100010111101100101101000001101 1011010010001011110000110010010111101100110101110111011001101010111011000111001110111011110001100010001011001110000010000000111110110110100001100101000111101110000010011101001111101110101100111101010000010001110111111100010101001011001110100000001110001110001101111001101011001100000100100010101000000001101110000010011011101110100110000111001011001100001011010010111010000101100111010111101010111011 0001011011010000011011001100111000010001000100000101111011010010011101001011000100011001010010111100101111000010111000110100101100010111110110111110011000111001110000111111110011111100111101001101010101011010010111100000001110011110101011001011111000010100010101011100010110101111111100100111001000001001000010011111000010001110111101000100101100111000011010000111111100010100110110110000111101010111 1000010000001100010001010110011101000110011100000110110110000000010010001101100110000010100010101100110010011111001111111011110010010111111000010111111001110011010000110111101100000001011100100001001000001010110100100100010001010111010100011100111011110110100110000110010011010001000100100001100001110101111101010000100111001011101011100011000110111111000001000011101101110111011001011100000100011010 1110111001101011111100111001101000101011100100011000010100010111100100110011001100111010101100010011101011011100111001110011100001010011110101101001110011100011001001001111001110011110011000111000111101011011001100100011101000111000100100110111100110100111001110111100010110100000111110101011111100011000100100110110010010010001011011000100101000011100110000100100001001101010000110010010110101101110 0010001111100101011011010111011100101010001001011110001100001001010001001010000001000110110101010011111111100010001000000000011101101010110111111100111111100100101100010100010110001101000010010111000100110100101110011101100111010000100111111010111010000110001010110101111100011000110111111001000011011100011000010111010101001110001011100001011001111101110000000001110110111001011001010110010100110000 1100010010110000100100011100111010101111101000011100011100010101110000010010100100001110111011011011011111101010000111000110111110001001001001111000011100011110010100001001001110010001110010001111001000100010011110010111110000000000110101110110111110100010000001001101111001101101101011111100111110011011001100000000011011111100001011101111000110010110001101010011111100111111111001110111000001000001 1111110011001010000111011100001111110100101010101010100100010001010000111111010000100000110101001000000001011000101110100110000110101111101010010100111110010100101000101110111100101110101010100100010001010011101110110000011111110001000111101000101100000100100100001001100001010000010110101011000111010111111011101101001110100010111010001011110010111110011010001111010110000110000001111011011111011011 1010100000000110001011000101101100011111000100001000100110101100001000000001110001111011010101111100101010101010110011000111001101100101010100100101000001011110011111111110000000001101000010000011101010111111101011111100001011110101010101100100000001010001011011110101000101000111110001100010100010110001111100001000101010100100010101001100001010010110101111111000001011111100011111100001011111001111 1000011111000011000101111111100011011001010000010111101101110000010100111000011001100101111011100011001110001110100110111000001010110101100101111111100001111100001101101100010001000011000101111001001011000010001100000011111100111010100100111100011110010100011111101111100101111000010101010110111011101000110000010101011011010100101111101000111011001011010011111011001101010001110001101110111100110000 1001110111001101001011100010101001100000110100001010100000110010101110110101010111011011101111111110101000011010010110001100110000111100001100110011101001010011000111011001000010110110001001111111000111011001010110101101110110001111101100110001100110110010001010011001011111011000100001100000110100110111001101010110101011110101010111110101100010101011011110101000110000001011001110010111000101110000 1001110001011001110101100110110100001010001111000111100110001010000100001000000010001010100111001010100000110110101110000111011001101111100001011100010100100001000110111110101001000001111011001111000010000011001000000011110101010001000011000010001010010101011110110000110001010001110011000111011110011111100110001011111100001101000111110110110110011100000000111011100110000110110101100000010100110011 0000011011011110000000001111110001000101010000011111101101010110110101010001001010011011001100101000110111101010100110111011000111010110101110010111111111001111111100011100101111110110001101000001000100011101110101011100010000111111110110101010001110010101110000110111001011001010011000011011000010100101100010110101001000011001000100110101011110000110001001101010100011001101100010100101000111001000 1101110100001000001001011011011000000100011010001000101011100000111001011100010011101101001101000110001010111111111111101010101000000010011100001111101110000011111110010111101010000010110001011000010110010110000011010110010101001001100100101111000110110110101001011111000000111100000000001100000101110001110100011110010110111001100100000000000011011100110011111111111110001101000011101110101000001010 1010011101010100111001010111110000010111110100100010101001010000100001011011010001101101001110111010011100101110110010010010101000011011110000001011111011101110011110101110110111110010000100011000110110111100100011110001011000110110010001100010010110110000111100010110010101111111000000101001010000011100001101001111111001010110011100011110110110110111101101011110110001110111000111100011010011010110 1010100001111111100000001101110111110010011000100101100110010000111011001010101101101100011101001111000100100110110011010001001000011111111011100101010000100010111001110010101110110110010000011001110111111010011001110001011010111100101000101101001111000110101111100100111111000001000011101111010101111001001000001111101100010000010010101011110101001010110111010101111001011011111101110010000101101111 1111011111110001011110100101011100100101110000100100111101011101010111111011001101010101001001011000100000110001100000010011110100010110110000010000010000100110100000100100110111101000011110111101101110100101101110001111001010010000101000010111101110101100110100110010011001101101100000111010100100101010010101100101010010000001110001100010000100101001111101010110001001000001110101010011011000100011 1000100011100111101101010011000111101011101010101000001111001111010001001100011101010001110100001100010100001111010011101000101011100011100010000010011010000000011111011110001010000000000110100101111100110101111010000110010101011001111001110000100010010111111010011011101100010011101011001111111010100110000011110000011111001111101110110010111011100011100110100100000111011010001111110001100111100101 1110101000111010010001100010001001101010110001000010101111011110000100011110101000000010100101110111111011111000101111011101001101100111010001101111001001010100111000000000101010001000101000110001110010100100100110001110111100011111110111011100001110000111111000101001001011001001000011000101010100010111000000110101110011001110000111111100001000000110111000101010000011110110101011101110011010001001 0010111100000100010110011111000000011110000010100000000111101010101000011000011101110010000111111011101110101011110101011011100101111000111101110001001001100001110110100110110011111100000001011011000100001111000000001101100111010010110011100110111110000011011000001010000101011110100010110010000111101100100111110011110111100101100101110110101001100111011010011001011000101111111010001101101011101111 0011101010100001000100010011000000101000101010110100111111101101000001101000100111111010101011011110110001010111110011101001110111000011000010111011000010000100000001011111011101010110001001011010000001000011110100101110100011100001010101010101111001101010011110101110001011010001110000101100111011000101100110010010110010011011011111111110110010110110111101100111111011000100011011101010011111000110 1000100111110000100000000101110000001010001000111000011000011111111000001011100010111000100011010001011111011111110111011001001110111011010001001000101010111001001110010011110111000101001101101111101111110111011011011010010100111011111000110101101100001000101100100000010110000001110101010011010101000011001101011011011010000111000000110001000000101111110101001111110110101110001011000111111011101100 0010010000011010001000011000010001101110011011011101010010001001000110011000100010011000111111100111110101101001000010000001111101111011011110000011001001110101000001011100100100100111001011101101101011011101100101111100100100011100010011111000110011111001100010100001100111100110010010011100111010100001010110000010111100011111110001001010000111001110010110011010010110010001110000010010111000001001 0000000000001011100010111011001001110101000000111001110110000101010001101010010000100001111111011011011111110011000111101101000011000111111111100100110010001000101100011001101111111101100001111000111000011101110000000010011001010000010010010101100111000000010101010011011001011000100110011111011000001001111011100001101011111001111110110111010010011110101101001100101110000101100000100011110111110011 0001010101001010111110111111101101001100110001111011001101111101101001011101110000011111010111111100100010100110010010000100001111000011000110110110101110000001000111110111111010010110101010101100011000100010010010101111111101001110110100110000101010011010111011111110010011111110100010001010000101011101010110001110011010011011001010100011111101010001111001101101100100110100001111101011001100001011 1001001011101001011011010001011010011110000001110010010001100101101001000110111111000111001100111010110001001100111100101100010000000111100010000110100110010010111110000011100011101111010010011000000000110100111010100000101000001001011100100101111100101100110101011011111100001111111111110101111110001111000111011011001111101101010110011001110011010100011010101000110100010100011010100101001011101101 0100000011111010010000011000011101100010110101110010011100011000001001011010111011011000101011010100001010001000011010000111010101110000000011000100101011011011001011000011101110100011110100100010011100000000110000000100000100011100111101100101010110010011110010101101001100110001101110001110110011110100001010011110101111011000010111011000011101101101001000100010000011011010000000000111111010011010 0000110110000101110101001010000011110011000011110101100110000001101010110011000100011000101011100111110110111110100110101001110100010000000110111010000111010011010011010000010001101001110011011010111011101101011101010110111011000100100010101110001010100101000001100111010000010001001100111100110001001011101111111011101000100011000111001111111110110011011001111011000100000010011110000010010010111011 1100101101110000101010100001101000101100111100010111110011100111000100101001100100001000111100110110110000111001001111011000100100100011101100001001110001001110100011100000110100100100110110011111001111111001001000111001011111010100100101001111101010111100001100011110001010101000101111000011110100111011010101010111111100101111000100101100110101000010111101010001001010011010001110011101001011010010 1111100101010111100010100000011100010011111010101110100001001001100111000110000111010000010111010010111000111110011100111001100110001010010101001001001011101111000010110101001111101111110111101100001110101010010001001010100111011000110000111000001100100111011100111100011110011100110111000011000111110101100011000000000100111100100001000101010010011111010111110100000101001101101110011101110101100111 1100100101111111100101010011101110110111110110011101001010101011101001001100001001110110111011010010100111110000110000011010001100101011110001000111110011110100101001100011000101101111110000000000010101110100111011100101000010011001011011100100100001000000000110001111001101011000100111010110110101110011110111111110000010011000000011010110001101101111101111011111010010011000010100010100011000000010 1001000111001111000000100001011101011011010001010010110010110011011101011011001000011011101111101011001011001010011011101011011011100101100100111001111110001000011000010111010001011111010100000110000111011111011000001100111101111010101000001010000010001011101100000000011010001010010001111010011110111111010001100101100010010010101101101100000100100000101110100111011110110000110111010100000000111100 0010100010110001100101111000010001110000011011100011100011111001000101000111001001010010001101101011011000000011111011101101100011001010110000110010100011011111001110110001111110010101110110111111101100110000100011100001001010000101101011011100110010100001111110001100011011101001000101001010001100000100100100100101001010001101010111010100100100110110110010011110001000001111011011010001010101010110 1100101111101001101010100000100111001011101001000110100000110011011100001111010010100111101101110101101001011100011101011001101110111110011010111010101000001001100111110101110110111100101001101111101001100000010111111001101100000110100110100100110000101111101111001111011010010101100100111011011101111110100110000101111010011101011101010100100111101101010000000010011110000001011001011000100010000111 1000010110010110010101010100110001111011101100101110110011010011111011110000111010101111010100010100111100001001000001010100100101000110110111100111011010100011100001010011100000000010111100000100100111010100000001100001000111110010010110001000000101111100000111110111110110101111001111010100101111010111111011111011001111001010011100101011100001000001010001110110110111110010101111110101011101011101 0010011101010101010000100011010100111100101101110010010100010101010010001101001110010100101001000000000000010110110001001101001011110110100000100000111101110111011001001011001101100001010011101101100000100101101111011110100011110000010111100101111010001011011000100011100001000110011010011110011001100010011100101101001101010111011100010010111101011001010000111111001000011111011011000001011011010111 0110000000101110001111110100101110000010000011010000010101011101010011011011001101110011001010111010011111111010101101111101111100111011000110010101111111000101110000100101010110011010110001111010101000000100101110111111000101001110110000111111110101010100000001111000010100001110111011000101100111000010100110010111101111000110101010100010111001010000000001101000110100110010010001010010010101100000 0001000110100110010010101010101010110111010000001010100110101110101011001011111111011111011100001101001011001110010111001011100010110010011111110110100101111111111000011000000001111110100111101101011000011110000001101111111100101111100100110111110001011100100100010100100001000111001110010001111001100111111111001110001110100001000101110010100101110001111001111111111001011000000001110110100100111011 1110011000010110010001111010010001100111000111110010101011110010101111111000111100010000110110111101101010010101010011010010001101100111010010101001001010101101111001010010110110010011110011110101100111001010001000000111011100000001000010010111100111110001001100100000001111110010100001111101000101110001100100101000000000100011011001001000101001011101000100110010000101101011000101101101100110100101 0110110110010000111010101101010101000000001110100101010111101111100110100000111100000110111100101011010110110110101110010100010001001011001011101001101111110001010001101110101011101001001101111100010001111111101101111101101111010000110100001100000111011001011010010001110111001110111000111100000010010100000110000000100010110000000100111101100010110000000101101000001100010100100110111000110010111010 1101111111110100101001000111001110111111000101101001010001000001010011001010111101101110011011000100111111011011011110011100100000110101001111100110101010100101110110101011011000011011101001011111100110010010101011001100100001000100111101100100111101001010000001000100100000110000011110010101101110001000110010111101011000000111110000011010100110101011001000110101011111110111100011101111100001000001 1000110111001101110010001101101100110111011100110011101101001011101011101011010011110011111100001100110100110101111001100101011111111011111100100110100000100001011111111110101110000100000000101101101100111100111100100011111111110111011101011100110111000110111110111101011010011111010101100100100110010010110111111000011100010101110100100011001010110101100110110011001111010100011111010000111111000101 0111011000000110101110111010011110101100010000110101001010010011110101001111010000101110111000010010011010001011011000110101000111000010111111110001011001011100001111110110110100000100110100000001001010100110001011011001011111100000100010000011101110100011000110100000011100111011011010100100101011000000000001000100001110011001100100111110011111111001100101100110010001000100101100010100001011010001 1101111011110111110011100110100111010101010000011010010100110000011111100100100001011100100100111000011001111110011100101110001000000110001010011100000110001111011100011110000010100010001100000101011001001010100010000110001011100010101010100000011001011100001010011010010010100000100010011000010101101001101100110101100010001011101000100010000110100100101000111100011101011010101001010010000001001110 1000110111011111011101010110010011110001011001001001101110110100011001110101001000010111011010101010001001011001101010100011000110101100100000100011000000101010100111011111011010000111011001110100101001111111110111001111111101011100010100001000101110000100111110000100111101101011000110001111101010000011101100111001110010011001100001011000100000010101110000100010101001010111011000010101110011000110 0000000111111000100010110100011100000010010110011001011010101111001101101101100010110110101010110100010011000010101101010011110101001010000011011000010011101001010011101011010110011000111010001111110110000110000000011010001100011010010100100000010101110110000010111011101110011111000110011001010000101110011100110100111000110010110010110000101011010110010010000101110000000001011001001011101110111100 0101010111110110110010000011101010111101100000010001100010110110101000101010000110100000111100100010000011111101101010110101001011100111100000101100000100100011001000110000100110111111100011110100110111010000110110001101011100001010001001011100111001011100110000110010010101011011011111000111100001011111000110100011111101011100001001101101011011111011010001101101001001111100110011010001100100100110 0111000001100101001001110010101111011011010111000111010011111000010111110000011111011001000110010100001111100010110000100111010011000000011001101101100100111111010001111110000101011111010100000101111110111100001010111010010110111010011110111101000011011101000100001001100111010110101110111110111100101011010111001010011001010111001101001010110110110100111110011011000010100101111001000100100001001001
cTrader

【cTrader】グリッドトレードをやってみる【Tools】

8/5/2021

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

cTraderでグリッドトレード

グリッドトレードとは

グリッドトレードとは「上がったものは下がる、下がったものは上がる」という相場の特性を利用し、相場状況関係なしに特定の価格で(もしくは一定の値幅間隔で複数の)ポジションをもち、基本的に損切りせずに戻ったら利確して少しずつ利益を積み上げていくようなトレード手法を言います。

言葉で説明するのが難しいのですが、有名なものだとトラリピとかループイフダンとか呼ばれる手法もグリッドトレードの一種とされています。

こーゆーのですね。これをcTraderで実践してみたいと思います。

 

どう運用するか

グリッドトレード運用の考え方としては大きく2つに分かれると思います。

①絶対損切りしない派

グリッドトレードと言ったらこっちをイメージすることが多いかもしれません。

損切りはせずに、価格が戻るまでひたすら待ちます。この方法であれば本当に相場状況関係なしにエントリーできるのでチャートのことはなにも考える必要がありません

しかしその反面、厳格な資金管理が求められます。資金管理というか、具体的にはレバレッジ1倍か「絶対この価格はあり得ない」と自信が持てる価格を想定した低レバレッジで運用する必要があります。

そのため、どうしても資金効率は悪くなりがちです。長期間の含み損に耐え続けるメンタルも必要ですし、万が一失敗したらロスカットによりほぼ口座全額を失うことになります。

②損切りポイントを決めて仕切り直す派

相場状況無視して適当に売りか買いか決めて、損切りもしないというのはさすがに抵抗がある方も多いでしょう。私もです。

そこで損切りラインは決めておき、相場の状況に合わせた方向でのエントリーのみとして、損切りラインにかかったらすべてのポジションを決済して考え直す、というやり方もあります。

 

②の方法をとるにしても、損切りにかかった場合はいままでの利益を吹き飛ばすくらいの損失となるケースが多いため、ほぼ損切りはないようにと考えて運用することが多いと思います。

そういう意味では①と②ははっきり分けられるものではなく、どっちよりの考え方で運用するかという話になるのかもしれません。

今回は②よりの考えで運用できるようなcBotを作成しました。

 

 

GridTradingSystem

機能概要

cBotを起動するとこんな画面になります。起動しただけでは取引はされず、まずは各種設定を行います。

薄い点線、および下側の灰色の線(最終エントリーライン)がエントリー価格となり、この価格でエントリーします。初期状態では最大5つのポジションを持つ設定となっていますが、再生ボタン左のテキストボックスでエントリー数は変更可能です。

上側に表示された赤い太線がストップラインで、ここに価格が到達すると全ポジション損切りします。

ストップラインと最終エントリーラインはマウスで変更可能です。ラインの位置とエントリー数をお好みで設定します。

ストップラインが最終エントリーラインの上にあればSell、下にあればBuyというようにライン位置によりトレード方向は自動的に決まります

設定が終わったら▶ボタンで開始します。■ボタンで止めるかストップライン到達or最終エントリーラインのポジションが利確するまでひたすらグリッドトレードを行います

手動で止めた後は▶ボタンで再開できます。新たにラインを設定をし直して再開する場合は、右側のResetボタンかReset&Closeボタンを押してください。(Reset&Closeだと保有ポジションも決済します)

 

ここに表示されてるMaxLossは最終エントリーラインからストップラインまで一気に逆行した場合の総損失額です。少し厳しめな数値にはなってしまいますが「このまま起動して放置したときに発生する可能性のある最大損失額」と思ってもらって差し支えないでしょう。

MaxLossを確認の上、最悪の場合の総損失金額と最悪の場合が起きる確率をしっかり見積もったうえで開始してください。

起動後はRealizedProfitに利確した利益合計WorstResultにはMaxLoss+RealizedProfitの値(つまりこれ以上利益がでずに最大損失額をはじき出した場合の最終損益)が表示されます。これらは気休めで表示してるだけなので気にしなくてもいいです。

含み損はあえて表示してません。途中結果の含み損を見て停止するつもりなら最初から最大リスクを抑えて運用始めることをお勧めします。

 

 

パラメータ

TakeProfitPips

利確をPipsで指定します。

Volume

1回にエントリーする通貨数を指定します。(ロットではなく通貨数です。)

HideOrderInfo

指値、逆指値注文のラインを隠したい場合、Yesにします。エントリー数を多くすると注文表示によりチャートが見にくい上、スクロールしにくくなってしまうため、不便を感じたらYesにしてください。

 

ダウンロード

こちらからどうぞ。

 

 

運用に際して

いきなりリアル運用は控えてください!

このcBotはバックテスト(ビジュアルモード)でも動かすことができます必ずバックテストで確認してからリアル運用に移ってください。

損失や利益のバランスなどやってみないとわからないことも多いですし、なによりあなたの環境でcBotが正しく動くが確認しておいた方がいいです。

 

運用イメージ

やるならこんな感じかなーというイメージを挙げておきます。

①日足チャートでレンジ相場を見つける

グリッドトレードは価格が戻ることを前提に考えられた手法です。トレンド相場ではなくレンジ相場を狙って仕掛ける方がいいでしょう。

②週足や月足チャートでトレンド方向を確認する

「もしこのレンジを抜けるとしたらどっちに抜ける可能性が高いか」を考えると、長期トレンドに従うほうが自然だと思います。

③レンジにライン設定し、トレンド方向にエントリーする設定で仕掛ける

トレンド方向にレンジ抜けした場合はその時点で全ポジション利確できてるはずなので、損失0で終了できます。

残念ながらトレンド転換して逆方向にレンジ抜けした場合は損切りとなります。この場合も長くレンジが続いてくれていればペイできてる可能性はありますが、たいていの場合大きな損失を覚悟しておいた方がいいです。

④時々日足を確認し、怪しい動きがあったら撤退する

少なくとも日足レベルでの値動きは見ておいた方がいいでしょう。怪しい動きがあった場合は一旦停止してリスクを抑えて仕掛け直すなどの対応ができます。

もともと小さい利益をちびちび積み上げていくタイプの手法ですので損失が出ないうちに止められればそれだけで万々歳です。

 

気が向いたら試してみてもいい・・・かな・・・

公開しておいてなんですが、自分でバックテストやってみたところちょっと好みに合わないなぁ・・・と感じてます。

確かに高確率で勝つことはできるのですが、失敗した時の一撃が痛すぎるんです。どうしてもハイリスクローリターンになってしまうんですよね。当たり前ですが損切りにあたらないように遠くにライン置けば置くほどMaxLossが大きくなるので。

私自身は使うかどうか迷い中ではありますが、もしグリッドトレードに興味がありましたらぜひお試しください。


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

新しいコメント

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

cTrader's Life

© 2025 ajinori