0010001100000100010101101100011111111011100010111010010111111000011001011011001110010101011100000101000010111101010101011110001001000100001001110110110001001110001000100011111001101111101100010111101001010110000010000100110100100001110011010001101000110010011111011100010000100001111101100111011101100101001000101110011001111011110010011011111110000101000101101100000111110100100101101011101110001011 0110111101110000100010000011100111011011000010011010110010110100010010011001111110000011110000000001011111110110000010000100000111011110100001001110111000010010110011001010000010000100110111010011110011110010110110010000110100010011110110110001010100011111011010001000100011111110100000010111111000001011100010000011100110010110100011111000000001010101010101100101111011110111001001010000100000111110 0110001011011000111001111100000110110001010000111001101000111011111111110001010101010001101000100011100111101101110111001111110101011011101001100001101110011101100100011111100001100100000000100000100101000100111010011001010010010110111110001100100110010111001000100000011010011001100001010110011010001101110010111011110001100110111000100101110011001000000010110100000101101000001010001111001101000011 1000110000100011101001000010010100000100011011111101110100100000101110001101001011111101010101001000010000000110000010101100111110001101110101001000100011110001010110100011001101111011010000110000100001011001001011010110010101110110000100010111010100011011101100100110001101100101011101110010100000101111111001000110011110000011110100111001001101110001101000100100111111101001001011110100110000101111 1011011011000000111111110111000011111010001010000111101011110000110111110001100101001111000111011011111110100100010001111110000100001110100001000011001000011000111110101010010011110001011011000111011111001000101111011011111100000001111011001010011101011101100100101110101100011100001000011101010001001010110111010111110001000011101110110011101001110010111011100001110110101001001100100101011110000101 1101100100011100000100011101001111011110010000001110110010110000110001101000111010100100111011110000101101000110010000110110011100100011111111101111101110000111101110110011101001001111110101011000000000011001110010001111001111100100011011010011001001100111111011110011111101001111011110110111100001010001110001110110010001100001100110111010100111100111010110111011000001010111110100101100100010000111 1110100100100111011000000111110100001101100001011110011011010000000011001010011011100111100000111001110000001000110011100001110011110100110001011110111111011101111111101011101010010011111010110000011000101001011010111100011110100011011010011000001110111010011111001001111001110110100110000111100011010100010111111001110010000001000101101000011101000101011101010110000101001100011001111110111011111100 1100101011001101101110001001001101000100010111011110110111000101011101101000110010110100011110010011010110101111100100010101000010100111111011110010010010001011001101111000001110000011011111000100001011110010000000011111001010011001100010101111111110010011010010001010111111101001001000011110010101101101101110000110001011110010101100111010010010011110011001110001101010000101011100101110000000110110 1011010011000100010110011101100111110101011000101101111100001001000101011000111010011001111101100000011010000010001000101000100011111000100010001110011001110011000010101011101011011001111100100101001101111111000111100101110100100000010001111000111101101100011011111010111011000110011010000111100001101010011000100101000011001011101101100010101011111000111100010111100001100101101100000001100001111111 1011010111110000100000011101101011000001111001011011100010011110000001001100010111110000111110010110100100100100111111100110111101111100000100000111101011000110011000111010110100011011000000111110001010110111101000011100000010001010001101001111010010000000000000000101101010000010111000111110011000011100110010101011011111011100100110101001100000110000011111001110000010111001111000010000110010101010 1111111001001010111101000111000110010001001111010001001110010010101111010010011100100110011111111011011010001110001110011101000000110000110100111111001101000111011010000011001011100101100111110100101110100011010001001101100100000100011000010010100110100010111000000000010101000000100111001001111111100110001001011101011011011000101011000110000001011011101100011001011011111011111010110011001101000111 1101101010110000101111110001101000010000101001100100011000110111001100111100100101101101010000100101111110101110000000101101001001100110010100000111000110000110010001000101100110000110001100110101110101010100011011111100110001100101010101100010000100000000000110001110010011101010101010101110011010001110010011000111110111011010011000001100110100111101011011010011001000101110111001101101110000001001 0010001010011000000101100000011011011011100111110011101101100010110001010101111110111110101100100110001001110111110011000011110101000000101011100100111000011000000001101010100001101001000110000001110101110111001111001100010000011100100001110001101101001100101110100010100011011100001001111001000000011000111110100111010000111111111000101010000100001100011011110011000101111010110110011000101111101000 1011111010110011100000010110010010000011011011100100000110101010010001111111101000011101000111101000110000011000001101101100111100001000110100000000011011110111101100101000011110010010000101001001000000101011010100101011100010000100001100101110100000010111011010100001110000110100110100011000011111010111111010001010001010100001110010111111101001111100001000000100011101111000111010011110011111010110 1011110010001010100111000010111110110000100101010110000000111001110100000101111011111011101000101001111011011011001100001100000010100001010101001011000010101010001101111111011110011100001110111011011000010011110110111001110101100001101010011111101000111011001000001100000001110110000000111001011111011100101001000000000110001001101110011001111100010010010110111001011101001011110010011001110000110010 0010111100111000111011011011011100101000111110111000111011101010010000001101010000011011001101000110000010100011010001001001000000111001011011011101111010001110010111111010100111010000001000111101010101011010111101010110000011101111101111100101001000000100100111000000111010001001011000111001101001001011110101111110011010110111110111010010101010011001101011100001100111011101111000010000010000010001 1111010010011100100000110001101101101110100101100010100100101110111001110110001001011101001011111001100011010101000001001001101000000000101100011100011110010010001100100111001011010001011111001100000011111101110110001000100111110110000011100000011111111011110010110100010111010101100001000011110101011111000110011100001111001100011010110000001000000101100000001110101001110000110010000010111101011001 0010111000111111101001010010010011010110111100000001011000110101001101001100100111100010010110001000000110011111101100000001110110100100101010100000001011000001100100010101111110111100111011111010000001001111001111001011001010000000100010101000000110110011010110001111000100011100010011100111001001111010001001111100000111101000000100110101100111110000011111100101000010110100101111111101111000111001 1000110100001011001001110100110110001111101001101101101100111001010011011100110011100001110010000010111110100010010100100100001110110111111010000101001100000011101010110111011110100100111110001100010101110101010011100111000010101010111011111100101011110100101010011100100111011101101010010010011001011110000011111111001110101101111111111010000010111000100000000101100000000001011000111010100110000010 1010110110011111110011101001001101111100110100010111110110001100010110001010100100000011100101111100101000110110100001100011000100000100000100011100010011000011111111110001100011001010000111111001001101001100101001011010010100011111010111110011010000111011010010011001001010111001010110110101110101011010100100111010010001000100100111001111010101100111011100001111110001111011011011000001001001111010 0110011000100100101011100011001011011101110011110001001110101000111001100000001100011100100101001001011101001010101101100111101001001111110011000111001010110111100011011101111110010110100101001011011001011000011000011010001111110001111011110110010011111000001110111001110110111000010000010111000101010100001111011000010101011111110111000111101001100001000111000001010000010101111000010000000101101011 0110011000111100011100101000111000101001110000100100011111100011110001001111000110000001010000110001110101100000101101000110111101001110010010101101001110100111011110100111000110010000001010100110110001110100101101000100111001100000110001000111111010000111111100011110111101001010101110111011000010001011111100100011001110010110100000011100011000010110010010011010100001000111101111000110001011001101 1011000010010010010101011100010000111100000010101010010010001011110011110010111000101011111011000100100010110010000110110111101101111000010101011110101110100010000000100110110010000100000100100110110001110101000001000011011100110110011101010111110000011010000101011101010000000110010010100101111100010100111011101101100111010000011001111000011001111100110101111001110100011011011100001000111101111011 1011100100001000001010100111001000110110101000111001101010110111100010110000110001111010011001101010110100010110101000100111000001100011010011110010011110000110000101111001011100110101101011100010101111110000011101010000110110110001110111000011111010100011010001101111110101010010011100110100111001001100100110101011110110011000101101110101111001101010001000001000101000111100110100010011011011000111 1111111110111111111000001100110111111101011010110011001010100001110010000011001101001001001101100111110101101011010000001000110011101110110010101111101111001101001011110001000111010110100100101001100011000011100001100100011110111101000001010010100111110001111011101110111100101010010011110111010100111011010110000010000010110100010111111111010100000010010010011000010001001010111110010011111110000110 1110010110010000101111011000101000010100010100001011100001011001100010111110100010100011010001110111001001111101000110010110111000011000110100010101100101011111111110011110110010001100000101000110001000100110110011011010110001010011110111110100001011110110010111111011111000001000000011110010000011011101011100110110010110101101111110001011110010101100001001010111110011100010011000110110011000110111 0111111000100000011100110000001111110101001001000001101100111011000101001010101110100101011110011000011000101010011000010110001100111010010100001110011000000100110000011000011010101011100110011100010001010011100110011110100111001001000000000011111001111101001000010100100100101101110010100101110011111110111001010000111100001111001111111010011001000110111111110100111001011101101010100010000100110010 0101011010100111100111100100111001101111011011100110010111000111010101011000100101101010110001100011100001010110110101111101101000110011000110100110010011110000000010001011101110011101011110101010001111101000000010010010100101000001010110111000100100111101111010101000011010100110010101000100110111000100111010100110001001001000000000101000011111010011011100001010100001111011001101011010000110011110 1110000100001111100110010010010001111001001010001000010101100110011100100100111001101100101001000011000011001000111101100100001010000110111001111011100001100010100001101110110011010101100111000111100100111001111110010101100000100110001101101111001100011111111100000100001111010011001011011001000010010110001001011011000011000010110010100000010101100011101110000001111100011010011010011101110010111110 0100000101000111111011111110011010010100101110111000110001111011111101001101111101111110010011000100001110000111010010100101110101101010100111001110111111110110110111110110011010000010101000111101000101100011111000111010000000101101101111101011110001100110010011011010100111111110110111001011010011101001011111010010100111010101010011001011101011000100100011011101101110100111111001001001000111001011 0010100010110011100100010100100101100010110110110001000111000100011110001010001100100010110000111100100110100110011101000001010010100100100100111011111011101011011000110101110011111111100100111100100110011010100011101001010001111101010100011110101110010001010101101011011001001100110011101000011000001011010100100100011110111110101011100000110011000011101001001100010100000100000000100100110110101011 0001010101101001110101101101011011100101100010100011111010110011011110000000101011011110100010010011010011010000011001001010101100011100010000011011110110011111000001110011100010101101100110000010001111110011100100101001001110110010110011010110010010111100000001011100100111100010111001101010101101111111010110100110101010010000001011111001010100011101001111000111001000111010010001101001010110001111 1001100001010001101010011001011011000100110000011000000010101010001001001001100111010110110100100000110000011110100110011100010110110101111100001000100101011111000000101111000101100011111011001011000001110001100001011011011100010000111111000101011001100100111101111011000110011100111110101111000110010100111001111010101010010010101011011100011000110001010100011010111011101011010110011011100111010101 1000001000001011010001110010000000001011000101110111010101001000111010101001000100010111000111001110010110001011010010110111001110101111001111011100001010111011010100001111101100011000011110010000011011010001001101100100110001110111110101110010011000110101110111001011001000110100000001010011100101000100110011011110100110101110111101100110011000101001110011000011100101010010010001000101101110000000 0000001110011101110111000011000011110000110111111000110101010000101111010011000111110001101101001110011100100010010001011111011100010011111110000010101001000101010110110101100011011101010100000101010011110101100011010010111111100001010111010110001110100111111101101001111110100000101100100011000001000110111110110010110111111011001101111110010000000000011100101110101010111001001111011101101010000000 0000101101001101111001010101010001111100011101101110101110011100111100100101110110001010101011001101011101010011111011011111100111011100011100010000111000011010100111100011110001000110001110000111111010111110011000111010110001001011111010100111001011010011011011100010101001110011011101001001111100111111010110110011100110011101110010000110001101001001110011101110101001110111011010111111100001100110 1011001011100011111000111000011011011101000001001001100111111000110000010011000110100100110100000100100010010001010000000010000000001101101000110011110000001010100000110111001101011100110000110111100110111011101101110101111111101110110000111100110101010110000110011111111100000010111010111010011101010011010100001000111011100011111001000101000010100101110001011001001110010110011101111111001100000110 0111001111111010001001000010100011100000111101011000001100000010101110110010111100111100110010011010011101001101101011101100110101011101111100101111100100110011100110010010100000011100100001100110010001111000010001001101001101010001111101111111110100100110100001110111011011000110000110001000001110000010101000011010111100101110001101100100101011101100100001111011110000100011101110100001010001111000 1111001110111010011010100100111001000001101000111001000010010100000010011100111001000100001010100100101101000011111000001111101000100110110001011001110011000000100111011001111001110011100011000111000010010010011110001010000110000010011101101110101001101101100011100011100100010101110000000101110010000111010011011110000101011010011111111111001110011001111001001011111010000111011011011000101101011010 0010000000001110011100110010100110011101111101010011110110010110111000000010100000100010010111011111101101100110110000001101111111010100110110111000000010011011100100010100110101101101100111100010011100101111000100111111101010111111010011100011000101101110011110000011011110000100100101111110000101000000010000010011001000111001010010000000111011010110100111001100101100011110110011001101100001001000 1110000100000010011111000011110011100010001111101001011111001011010111000010100011011000111010010011100111011010000001100000010101110110101000010000101010000001001101110111110011010011110001000110000111101100011111111111011101010111001111001100010100010111010011110010011101110101011111110111100101100010100000110011001100111000011010010000110100110010100000011000110001110001100101101001001001010111 1011100100000111010010101101000110000010010001011011010110010110010011110000110111111001111010111100010000101011100100000011001100001101011010011001000010000010010011000011101111010010110110111100111110001110011111101101101011011110100101111000001100111010100000101011000111100000110101001111010001111111001100010110011101111011000110011101101101110000000000111010110010001100101010010001001011001100 1011100000011100010001001110100011011011010001010001101100111010001111111101011111011010001000011111010011100100100011001110111100111000011011011111101111000001100100100001001010000100011111001100101010000110010010001111011011001010000000101111010000101101111011110101110011111110111100000100000001111010011010001111010000001011011100111001011011110010110010100111100011001010100010111011000000100010 1000101000110001101111000011000010010100011111011001111011011000101110010010011101011000011110111101101110001001000011100100000110100110111001001001101110110110111010111110010001010101010011111001010001011100011110100000010001110101111011001011000100101000010000000101110110001100111111000101101101001111001100011100100111100011101100101011001100111110000100101100010011001110100001100001000010101100 1111100011011111010101000010000111011100110101000001101100010111001110100001100100011000111001111100110001010010101101000000111011111100111001100000001111011011001000010100000000110110011000010001000010010011100101110101110100100000100000110010111111010011010110011001110101110101001000101111101010111011010010110001001110001000011101000001100001000000111001111011011110011101111001100001100011110010 1001010100100111000110001000000101001000111010010100110010110010101001110011000000111011000110100010101011010100100110111100000100110111000011000100010011100000100101010011110111111011110010100110110100101010011110111111010011011001001000100010111000000010001010110100001011001010000101100001111110110011011101001110110011001000101001100010111010110101010101010000010011010100010111101010010111000110 1111110000001000001010000111100101001011001101100001110101000001001100011010001100010001001101010101001010111010111001001100101100100000011100010100100010101110101011101010011011110111101000111000001100000011110011110000010101100110000011111011100010110111100110100010110001100001010010011111001101001100101001001101101101001100110110001101010110101001101010000000010000010010001111111101111101100011 1111000111000100010010011110110001100111001100001100000110000110001010011000001000111100111101101101111111000001011111110111110101000111001101011101000001010111111001110110101101010001001001101001111010100111010010101101001100101110000000100000010000010111110011111101111000111100000111111011100000110101111010001111000110001100010101011000010000110100111110000111011101011100011001110100111000010100 0010111010101101011010100000111111101110110100111011111101011010011000011111101001011011110001011000110010101001111001000001100111001111100000101101001111010001011100000011111000101001101101100100101110001111100101111101110111001001010000100110110011111100000100100101111001100011111010001101101101101000111110010111010110000001001100001111010111010000000000010100010100110010000111111010000001100111 0110000111011101001000110000011000001100011011010010100001100101000110111000001111110011011001100111111010010001111111111011110011000101111000110010100001001010111000011101001110100011110101001100100001100000001011110010011100101111111110001110001011000111101000001001001110110101100000100010001010111000001011000101011100001010010011101101011010111000001110111101100100010111111001010001101110010010 1110011110110111001011101001011010000110010111001010010010110010111100100000001001011000001011101100011010110001100010111011110011000011011111101000100001111110100001000011110100001000110101000101101010100110100110001100001000101111000110110111010001000110011100101000100010001101000111000111110100001001101101101101011001000011100001100000111011110001000110110000010000000101000111101001000100011101 1001010101101011010000100000001001111110101110010010001100111000000001001001111001111100100000101000000111000010001111100110101010111111110011011110010010000000101001101100110100011011010110111110010110000001011100010101110100101100111001011001000111111110101101001001010000000111010000011101010100000000001100110101101101101001001100001101111001010100011111100000011111111000111010101100010101000101 1110001110111101110000001110011010001101110010011010110011111000011010010111001000101111111010001001101101001100010011001000001001010000101010100111011101100110100110001011011110111101000001110100110101110000111100011110100010001101101011010100110001100101111100001100001010101000101001111111110100011100011100110000001011011010100010010001101111000001111011110011111101010111101101000111110110011110 1111101111100110010000101010001011100010010111100011011000101000010011010000100001101100100101010111110111000000100011000110110000000010001100011010101111111011001111000100010100010110011100000001010010011000011001000010110111100100110011101010010000111001001011100100010111100101101100111111000100110001010111001101011001100011110011010000010011100011100101101101011101001011010001110000100010011010 1110100010111000111000011011100110111011101101000110001111110101000000010000000101011010001100111100000000011101001001010110110001101000111110111101010010010011111111011010001100010010100110101101100000000001111000101010110010001111000011110110101001001001000101011010100011001011100100111010111010011101000000101100010100011101000001111101110010100101111111101101010111100101001100010111011000111111 1001100000011110110110001000111110101000111000010101111101011010001001011011111011001001111010101110100101011000000111111001001001000100110101100101000110001111100101010101101110001011111010011101010010100011100101010111110100101110001111111101100111001101110100110011001000001100001111000001100000111011111001100100010000001000111010001000010011011111110100101110000100000001011011110110100100101110 0110110001001100110101110100011100100110010101111000010110100110101100101111011010100000111011111111001110111010010000000101000111110011101001001010110000001111000001111110000000110111011001010011111101011001001011011010110111001101110100101111101110011011010100110010101111111000101101001101110100001010011000000010001101111011100000101101111000101110010101010110011100001100001010000000100001011001 0100011010000110010001101011001111001101011001100001001101111110111010001000010110100000011011011100101101000101111111101101100110110100010001111000000011001110001001000110011000000101110011101001000011111001110001100011000010000000000100010111101100101111111001110100111001110111101010010100001001010101111000011011101000000101100000111010101001000011010011001001000011110010010111000011010000110110 1010001011110001101111011001100001000110001001100110010011111110110010111000100110111110000101100111010001101100011010010001001011100110111001001011111100110101100101001000000010010001110110010101101011100110010111100100100001011101110011100000010000011110111111110011100010010111010011100111000110101010001001100010001010101010101000101010010110111101100001001110011101111001011011100010111100101000 1001011001001110110111000011111111001001001011100000110001100100110101100100111011011101010000001101010001110001111001110010011000011000000101001100000111001010001110101100110000110110000101101001100011001010110011101001011110001010011100010111100000101010011010001010111111100001011001010101110111011110011111010111011100101001101010001010111101111001011111110100010100100111010010110110001000110001 0000100111000110000010011011001001110110100111100000101101011110000001001001100101100111111110100100001110001101100111001011101110111000101101010010101001101101100111101000010110000111101011000110000100110100011010100110111111001010010101011011110110110000101101001110111101001111001000000011101100001000011010000000100000111100010010100111011100100001000010101010110010001001011111011011011010001110 0100111110111110111111111000100001001011110001000110011100100101011100111111101000011100010000001001110110010001010110001110000010011100000001111101000011111011000111101101000011010011001001011110010001110100011011010110110100001000110000001100100101100110110100010010100101010111011111000000111001000011010000011111000101011100110000011001010101100111100010100000010001010001110000010001100011000011 1001111101100000100000110000111101111110110101000010100110110000111010010010000111000100110010010100100011110100111101011111001000110111000010100111011001001001111000010100110111000110000000100000101001101101001000101110110000001111010100001110011001100101000100000011010010010100011110111001010110110010011101000111001110110111001111000101011001001111000011010111100001011010001011000100101010010000 1010100111111000000100100000101101110001110111010111101100010111000100001001110000111111000111010100110011001000011011000001110111001001010010101011001000010101000110011110010100011000011110101110101000110101111110000010110110010010110010100011011001011011001011110111010111010111001111010111110110000110011010000110111011001111010101110101000010001010011101001000111011011010011100000001101000000001 1110100010100011101001111111101101101101100100011001010110010011101000111111010011000010001110111110010000011001111111010101100100010100100110011001001001001010101011100100010110010110000101101110111010000110010101010010101011010011001000101000000011101001011011001001001110110010110001111101011110010101011011111101000110100000101111010111001011011000000110001000110111001001101011000001011100111001 0000101000000101001100110101011010010001000011110011111011011100110111101101000101000001101011100111011111001110100100000001110110110111101010100100111100110111011010010010010111011001111111111101011011111010101100110101100100100101100011110101000100000001011010010000110101011100000100001001011111011000001001100111001100000110110110000111110001010011100001000110010101100011011110110110110111011111 1010000100100001000010110010000001010101001011110111111010000111000110101001110110000111010100110110110100110011001111101000101001110110011001001010100001011010100100010011001101001011100001001000100000011000111011100011111011100101100101010110100000010111011111011000001110101010011000011011000000100100111010011110010111111001000010010001010010010000001000100101010010110110001111000101000101110110 0001111000000010001010100010001100101011001000111111010110000110000011111110100001111010100001001000001011001110100000110110100001100101111101101111011110100000100000101110000100011010110000001101010000110010011101100010111101000010101100101100010101011000011001001010000011001100111001101010001100100101110000011111001111001101101000011011110001101101101010011010110111001111100001010101000111001001 1010000100110110100100010001010010011001100000011011100100011000111011000100010011100101100001111010011101100001011111011100001000000111110000010001001100010111110100111010101000000011011111111101100010010011111110011010101010001001111011010110010001100100110000101111000011111001011100101100111000100011010000001110100010000111000011000010101000010100011001111011000101011111011010010100011000000001 1000110000111001100111110001010111101000010011001111110000111111101010000111001110000010101110001001010110111111000111101011011111111000010001100010111001000001001001101110101011011100000110110111100000111010110000111010100101010010001101110111000101010111111010000000000011010010110110000000011000011000011110000111001001101111111111101010100110100000001110000111100111100011011001010110101000011010 1010011010000101100110001111101110010100001111100110011110000101100111101111100111011010001101101100111111110110000101110111110111011100010100000101111011111111101101001010111111001001010110110110111011110111111111111100001111001101010010001111100111110110100000001110101010001001100010110011100100000101011000110000011101110000110111111101000100101100111010111001110000110010010101001101011000000001 1010000100110001010111111111100111100100101100110100110100011111001000011100100111101111000001000101111010011100001110011011001111100111000111010000000001111101010010100010101010000001001110100000110011010000100011011001010010000101100010001110110110110100011011000000110110110000011101001110011001000100110001001001111010001000100101000011010001011100101110010101101011010001101010110001101010011001 1001110011101101111111000000110000100101110010011101110100101111111011110011100111011011101001010100011001000110101000101111100011101000100001000101110101011001011100101000010010001010001101001001011100011110001000000110000011111010010110110001101101011100111100101011010110010001111000010011011000010010100110001100001011011010111111110010000111010111111111111011100010011111101001000011001010111100 0110010011101001101110000100011110001110110001100010111100000001111101001100101010110111010001011011100001100111110001100100000111000001010011010100011011010010011011101010100001011110001111000110000001111110011011101100010111001011010010000011001100000100110100000001010011110110000111010000111001100001100001111000101110101010000010001010000011011011010011011011000110111111110111000101000110110000 1010110111110001111111110110101000000111001010010000001110111111111110101011011010011101101011100101011011110001011100000111011101111011111011000010111111000100101100011001111111000001110101000111001000110001000000000111111011101110100001000101000001110101101000010111110110001110110100010101010101010111110110100101010010101000100100010110101110001101111110011001011010010010011011011000000011000110 0011111110000010011010001100011011010111101001011011110101100011000010100100010011100000100010100100000111010111011001011010100100000111100010011100011011001100111010001110110110111000000001111100101100101001111110101100000111010001000110000110001000101011011011000000000100001100110101100001100101100111100101000101001010110001001110000110111111111100100111100100001001000010101101010010010001011011 0100011011101111000100111011001100011000010001100010001001010101100010010011001010000010111101100110000010011100000101000000101100101101101100011010001111001100010001100101011101001000110000001001101100110011101011011010100101101110110111100011010100100101011000001101100010101100010010101011000111110101001011111011101101101011000011110100111001011111011101010001110110100000010101111100100101001011 1110011011001010100101100111001111010011101011101010101000110001001001100110001011100100000111000110010000100011110011100110100111101011000001110111101101100000100010101010101111101011010101010101100001101011100010000101111110011101101010010011000000011010000100001010011011111100001100101110011101011111111001011010001110000000011100101110100011010111101010000010000001101101010011001101001100101101 1000000101110101100110010000101000111000110010100011010000110100101110010101010111000010010101010110011010100101100000111100011010110110101011101010010000101110111110010000011111000000001001111000001101100101101000111000111111001100101110000010010101101011011100111100101001011011001101111100100100110111000000101101000000110100011001001110101110011001100110101110010001100100110010110001100110000101 0010100001101100101100111010111111001001001001110010101100110011010110000010100010111010101010111011100110000111000010010000100110010010110110000110011111110001011001001010110110111001111110100101001110000100111010001100011000101001011000000101110001001110011010100110010000000000011100001001000111000010110110111011001101001111010011110100110111000110111111110100001001010010000001110111111010101010 1000110011000000110111101001001101111101011111001101100000001100011100110101000101100000100011000111111000001111111010100110001110001011000001011110000000010111111010111001100010000111011010000010000101100001100100100001111001001001010100000011011100000101000011100101100101011111011001111011001110111111101101111000111010100010011011101101000010110101001001011011100001101011010000001110000010001010 1001111100101101011011010000100111101011110010011100100000010001101101010110010111001111101111000010100100101101110110110011011111011100011110100001110001010110001010111101011000001101110101010110001011011101001000011010000110011000100011110101111001101011001111001111001111100000010000111110101010010000110100101101010000011100100011000100011110000111010001000101110011001101111010110101010111110101 1110100000111000001000101010101011011101111110000011111111001000100100011001011001101100100000100000100010001100111110101110011110111100010100100110010101011010000100101001111001100111100000100101010001100111001011010010100111010000110000001111101000111110011000001010000010001011110011000000001111111000111100110010011001010110000000011001001001001011100000101110011010111101001000001010001110101011 1010111001111110011001011101110001010100011110011111110110101001000110111111011100001010001100001100100011011011000110111111100100110101010110010111111110101110001001110111110001001011011010000000001001111000000110001001101001001100101011100000011101110011000111001101000001110010100100010000001100010110111101100101110101000110110101011000100000100010011001111100010010110000010101101110110111011110 0001111000111111111100001111100011011000001011101001101100110001101010111110001000010110100000111000010101100000010110100111111001011011101101001011011110111000101111000100001000101011001110000000010010001011100010010011001011111010101000110000110110010000010111110001000000110000110111000011011011001100100000010110011010110111111001111100001101010000001111010000101101011111001001001001100011111100 0101110100010100000011100111100101110010110001011100111000001100010110001100100001110100010100001100111101000011111100101001110010001101111110101111110000100101110011111101101001001111001010110110001000011001101100111011101100101111101011010111001101001011100110001000011001100101011001111011000111010011000100011110010000101101100101111100111011001001110001011100110111000000001001001100011010010111 0100001110000111010011110000100000110110011011001110000111100011000110000011111011111101110011101000110100011011110001100011100110010100001011101010110110010101110110111101001101100010100011010111101010110001111101101110101101010011010001001011011000000010110101101001101011001010011000110010011000111000101001110011110100000110110111110110101010001011100110011001101000100110100101010111010001001110 1011011000111101100010011100100100110001110100010001100110101110001100110001110110100000111110101000110101011101110111110111111010100110001001101010001010001101111000000010101010001000010011111001001111101101000100110110000010111001010001110001110100011111010011110011000011101110101101001001000001001010010111010011010100101011000010111110000100011110100010011011000011110110110111011001001101011110 0101010010111101100100101011010011011101011000111101111010010000000010100101101100101100111111011010101111101011101001000110001011111001110110101011000110011000000111110100101110001001011000010011110101001101010111011001010111011000000110010001000011001100100110000110001110110101110010010110000000001010000110101001011110101001101101001111110111011000010001110101100110110001111110110001010110111111 1111110001000100010100111001111001111110011000110000010100100110111001101001111111100100100010010101000011101010101010110010010111100001000010110111010101100100000111100000000101001100001111101100011100110001001000110110000101111110000110011001000000110110110011011011001001100111010010001010100001001001111010000110110110101011101000011001011011111110010001010101101111100011001101101000101110111000 0010000111010001100111110000110001001110111100111111111011001110110101011111110011011010110000011100110100010111011111011101010011100100100101101001010010101000000011000010001100000001011011001110010111001111110110101111011100010000000101011110011001000011111001101010100111110000101110011101000100001110110111101110010000111101000000001100010011011111000111110010111110110011100101000000000111000001 0110000000101011110110101000101111000010111010111101101010111101000111000000101001110000111111000100110000010001100000011010100000001010011010100000000110100010100011111101001100100100101100011011101010001111110001000010010101100111100100011100001110001001001111110010110011111101111100101001111100000110001010000001110011110111110100011101111000101011110000111010001110100111101000001101011011101101 0111100001011010101011110110110000000000100101010000111011011010100110001100001111000111111111111111100110010110100000100101001001111011010010100010111011110101011101101110000111101010000000011000000110001011011100110000101110110101110011111110010000001101100100011011111011101010110010100011010100001011110000110011000100010000111110111000000000111001011000011010000000110001001100011010001111010111 1101010111001111010111010010001010011001010101010010011001101111101101010101010010001001001010010111000000101010000001000001101011010001001010011111100010000010000001111101111001000101010010001000101011000111110101001110000011110110111011001010101000001010110010001011010100000100111111101001011010011101100001000010110010011011011111000000000001001011110110000110000110001100010110001100000001010010 0001011001011001111111011100111101000000000110001001010000001011001110011000010010100011001001010100100110101100001011001100111100110000000001100101011001110111110011110101111010111001011110011101110110101100100010000000100011100100000100110010010001100110001001010110011011110010001010010100111111111110101001000000001011011110100000000010110010001001110011001001010011000101111111110001011001100000 0000001001111001010000110101001101110001111111011111110011100110000010100001000011100001100100110001000110001101110100011110111111100011001001111011001000110000111110010100011111000110010111101001000001010101001011100111111010101101101100011010111010001110000000001111000111011010101101010100010000101111001111010100011100111000001110101000000101110111100110000000000111101110011000001110111100100110 0011001011010100100100111100110101110010010011110110011101001010100100100010101100101000111100111001101011000000011111101000001111110010101110100111000101100010001000101101001011101100001010100010011111001000011100100001110110000110111111011101100010010110111010000010101101110011000001100001101111111111111010010110100010111010111100100111010011110011100001110111100101111011111001101110010010100110 0010111111010011110100100110010011111010011001010001011010011011101010100110111011011001010110111101001010001111101001100111111010101011110000110100011111001101100111011101010010011010001111001111000100001101011110110000010111100011111100000011000110011100110100010010110001001010111111100110000110000001011011000110000111101001010011000101001001011011010101110001011110100011000101111000001111101111 0001011100100001000101111010111011100101001100000100010011110101011000010111111100001010011010101011100010111100010100010010101110111011010001101011111101000000110110100001001010010110001010001111111100110101000110111001111111011100001111100110100111111111010010111010011100011101001101110011001110100000100001101100101011010111110101101110100010001111100100110000101111001110101010010010001110101010 1100000101001001010011111110000010111101100110101011010011010010100000010010110100010110111000110100111110011110001101000011101110101011001001111011000011100111110111000110001110110011011001110001101101011101000011011010101011000110001000011111010111111000011110001011001000111010101110100000010100110110000010011101001100000111001111001101111001110000010100011010111010101010111101100110110100110011
cTrader AlgocTrader

【cTrader】RCIを3本表示する【Indicator】

12/14/2020 3/24/2021

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

cTraderでRCIを表示する

RCIとは

MT4にも最初から入ってないわりに日本では結構メジャーなインジケーターとしてRCIが挙げられます。

Rank Correlation Indexの略で、価格と時間のスピアマンの順位相関係数を-100~+100の数値に補正してインジケーター化したものです。

RSI等と同じように相場の行きすぎを表すオシレーター系の1種ですが、期間内の価格の順位だけに着目するため、価格差そのものには影響されず、指定期間内で少しずつでも順調に上がり続けてれば+100に近づき、下がり続けてれば-100に近づくという性質を持ちます。

1本だけ表示させて、相場の過熱感を見る使い方のほかに、3本表示させて短期戦と長期戦の交差や位置関係を見る使い方も有名です。

 

cTraderでRCIを表示するには

cTraderには組み込まれておらず、フリーでダウンロードできるインジケータはあるようですが、3本表示できるものが見当たらなかったため作りました。

計算式を確認したい方や自作cBot内で使いたい方もいるかもしれないので、ソースコード付きで配布します。

ダウンロードしたらダブルクリックしてcTraderにインストールしてください。

なお、期間内に全く同じ価格が存在した場合は厳密な値とは異なるかもしれませんが、実用上は問題ありません。

 

使い方

インジケータのCustomからRankCorrelationIndexを選択します。

そのままOKを押せば、短期(9)中期(26)長期(52)の3本が表示されるようになってます。無駄に6本まで同時に表示できるようになってたり、基準価格を終値以外に変更できたりしますので、使い方に合わせて設定を変更してください。

 

 

cBotから使うには

Automate画面から参照を追加

まず最初に利用したいcBotで参照を追加する必要があります。

「VisualStudioで開く」の前にcTraderの組み込み環境から行う方が楽です。上記のように選択して「Apply」を押します。

 

あとは組み込みインジケーターと同じ

これで組込インジケーターのようにIndicatorsから利用できるようにしてあります。

RankCorrelationIndex _rci;
protected override void OnStart() {
    // 期間9のRCIを用意する
    _rci = Indicators.RankCorrelationIndex(Bars.ClosePrices, 9);
}
protected override void OnTick() {
    if(_rci.Result1.LastValue > 80) {
        // 最新のRCI値が80以上の時の処理
    }
}

 

2本、3本と同時に使う場合は初期化時に3つ目4つ目の引数を期間を追加指定しておけば、Result2、Result3で値の取得ができます。

RCIを使いこなしてるトレーダーさんいましたら、ぜひ活用してcBotを作ってみてください。

 


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

新しいコメント

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

cTrader's Life

© 2025 ajinori