1100111000111101111110100111101111100110111000010110100100100010000000111001001111111111111011110110111000001000111001111101000100111111010111001100011110111101011001010110011101100110101101101010100010100000111110111011101000011010111010101110101010100000001001001010100001101100001000110110000110100111001000001001010101100001100010001111111011110100010100100110000101110101000100110101010101001011 1111111100010010100110111011001011111011111110110101001011110110000001000110100001111011001011001001011111001101110010001100110001010111110100001111111111011011011111111001011011111001011101100001101101000000000010011111111100110001001010101000000010111011111110111111111010101010101001010010000101000100000111110011011100010010110111000011111110110011011110110101000110010000001110110110000010001101 0100111101010000000010101000101111010010111010111101010100010011000001111111000000110111001101111010101101010001001000110000100000011111010101101010110011011010111111010111101101111100011111110000101101101010011011011110011101010101101000000000100110001100010000100101011101111111100100100111110000010111010110001111100000000100011000011000001101110010101010001100101111111110100001111000100011100010 0101011111100000100100111001110000111010100000111000001110001101110001000011001001010011111001110110111011110101001011100011111000100111000001011101110010110101000011101010110001001111011000111001110001000011100000101011011010110111110011111111000011111000001101110110010100100000100011100010101101110010010011011000110111001011011101111111101011011101001010110111011100101110101001011110011100001001 1001110000011100000001101100101100010000011100101111001100110100000100010101110000011100010100001011101110111001001010001101101000100101001101010010101101110000110100111111101111001101110000111010010100110111111000110011100000101111100011000000100001001000011000010011011010011110001001011110001110000111001101001001101000010100001011111100110100000011001110001010001100110011001010000010010000110011 1011110001000110101011001100100110001000111010011010100100010011000111110011010010100010111110101010110110000011011110011100101101100011000011100110111101101111000011110000001111000110110000001111000101000001011000110110110000101010001101110000000100110101001010111101011011101000001110000111110000000010001001101100000100000011010111110110010100101001000000010001101000100100010111110011101010111001 0100001100001110000100101111101101100001001010100000010000010000101111010011000000010100100000111100101001111000111001111001100011101111010001010100111000010100100010101111100111100000111100101011111111000011011101111010110001011011110010000000011001000011101011101101110000011010010010101010000100000001001101111101000010011011110001100101001001001001101100100001001100000000110111100111111110110110 0101101110101111011001010011010001011010001000111001011000101101110001001110110001000001111101011110101101100110101001011110101001100001110100000100100101111110100010010100110000101011110010001010011011111100010010001110101010000111001011100111101011000001111010110000100011101100100101000011000111011101000111010111001010001010011001010011100010001110000011010000100101011010011110110110100110000000 0011011000000001101110000011101010010100111100110010011110000000011100100111001001010001101001101110001001100000110001011001111010001101001110111001101101100101100000101010111100000111110101010000010000010000011110111011011001111010111000110100110111111000001000101101111111001101111111011100111111011110001000111110010110011001011100001111001101101101101100111001100000101101001010100010100111000011 0011100111011110101000111010001111101000110010010010011110101111000100011000100011110111011101010110111010000011110011000101001100011010001011010001000010100100111110000000010110001011011000111111111111011010101001110001010100101011011100001100100111000011100110000101010110001111000100100011110011101000101011001000001111100111111011001100010011101000110101110011101100111110100101101101001010001010 0100111100010111100100010000101100111111101111010001101000101001001101001111000001011010110010010001110011000110000010111111100001111111100000011010010000000111101111010000101111001100100100101001101100011110010100011110111110001100001001001101011001000100110001110000110111100101100110101110011110100001000011101101111110111110000001010100111001000010011111011001111000010110101000101001110101001100 1100110010101110001011100010110101000100001100011000011111100100101010010001010001111100111110010001100001010110101011100110000000100001001011011110011011000011101010011111010111101111001011010110101101001111100010111101101011000100011101001100110000101001011011100011000000110110010100000101111100010000010011110111001001100000111000000010011010010110100001001010011101010001111011100000011000000111 1000101001011100001100010000011010101001011100110110010111010100100100111110010101011010010111010011011100000010111010111001100001001000000101110010011011100101010010100110111111101111010110010100011011110010111010010001001101110011100110001011001011101010001001101010010000011000011111000000110000100000101101001011101111111101101101000010001010001101101011001100010001110101110110101001001001000111 1011100111011100100101010111110100001010001101100011000111010010000111010001010111110111110110000111011111001100101111011011100010011000011011101100100100111101010001111100101100111010111111000101001101001111011011111011101101010110000111100001001000011001101110101101001100100010100011110001100111001001000001110100011111100110001100101001101101000001111111101001010111011011110011111101111110001000 0010011101110110001100110011101000011010110110100001111000101111111110000010001101100101101011111110110000101101001011001010100010110100111011011110100111000110111111111001100001100111111110100100101001001101001111010010101011111010010111100110000111000101101110101010000010011100101110100111011111101111001101111000101010101001011000100101110101110000010010100001110000010010011000001101100100100101 0101110011100111111010111111001101011000101110000000111010010100110110101110000111110100101111100000000001110100101110011010110111100000111110111110011001000100110011001001111111110000000000010101010111011001100001110010001111110010110101110000001100001111000011100011100000001000000000001010101111101011010001001111100111100011000101110111011000010110000010001010101001110100011010101111001010110001 1000011000101101010101000100101111100110101110101011100110011011000111100101101110110110001100110110110110110011110000111101001000101010001010111001000101111001111000111101001010001111110001111111100110010101101011000011000100010000010100000010001111101010001100101010110000010000001101110110101011100101000010100001110011011001001011010101111000010101000110110111011001000000000011110011001000110011 0001111100101010001110100000100001101011100101011011011111110111110010101111001010000001011011011100000100101101000110111111111111100011100011111100011010110000110101101111100011110101011001011000110011000000000000000010110111110000000111001110101100011000011100001000010110101101111011000000000111111110111100010110011010111100001000000001000101101010110000101101010101001100000000111001101110010111 0110010010000110011000000110001111001011011111000111111010101001001000011011101100010010001011110001101001010001111100011010111001101100111101010000110001101101001111101000011011100110001110000101110000010001111000111000010011010100111100110110000001111111000111000110011001110111100011111010001000110001110001100010100011101001011010100110101010001111111011100011001000001010100001010010101000010100 1011001111110101001011001110001110111000100111100110001000100111010100100101100000111111010100010011101101101001010001101101010100000000001000000111011011010111110010001110000000100000110101101101001110001101101011110110110100001110110101111101010100111001001110101000011011100101010011001110111100100010101100100011001000111101001101100110101000100110010110000111001101111100000110101011000110110010 0001011100010100011010110011001110100111000110001101100111110111100001010111000010000100010110000111000000110110110000111010101100100011001101100000010010010011001010100101010110010010111001000011100111010001110111111010001110101000110100000000011111101011010010100010000111000111101111000111101100011011000111000010110111100010001001001100001110110111100101101110101010101000110110100100100000001001 1000100000011011111000010011010001001001010100011110010100001011001011110011010100001010111110110010000110011110101100000110000101100100010011010001001010101001001111101001000100100110001001101111001100000110110001000101100111110001110111111001011001101101000111010001100011100000000110001101010110111010010111100001110110100010100011101000011010011011011010000000101011000000100101010000010001101111 1011011100111110110001110001001111001110011111000101100110011101001001111001011000000000101010000000110111000011111100110111011011100101111000101110001011000100111100000010110010001011000011001000001101000101000011011010001101001101111001111100011011000000010111010010010000000110110000001110100000000010100010010110110001011001010101111010110010011000111111101100001110011100000100011101110001011011 1011111100111101110111100001001011011110100100101111001011100100110111011111101010111011011011000001000001010110111010000000010101011110100101000110100011111101000110100010101011100100101010000110001111111110100101101100110101000010111101100101110010010000001111101110111101100010111111100100110010100010011101011001001011110100000101100011111101100101010101111010001100000101111010001000101101001000 0001001001110000100111110111000101100111011001101111111000000010001001111110101111011010101111111111001110110001010111001000100001111010100011101010010100110000100100001000010011100001011101110100110000100011110111110110001110010010001010110100110110011010111010011000000011000101111111100110111100110001001001000001000011110101101100001101100110001000010111101011001001100101000100000001110001011100 0111100110100001010000001000000101110011000011000000101110010011000110010011110100001001110011101000101111000010100111010011001011111011111010011001010100101011101001111100111000100010100001011001101001100101001100000011001001010011110111101000101011011001110111100101110111011011011100100011100100111010111010101010110100010101111000111101100101110001101011001111101110101111000100111000000111101001 1010010110111111100011011111010100110011111110100011001001010011110101111001000011001101011110011101111010110001000111001100100100001101011111000110000011100111111000001000110010001011001010001101100000100101010010011111010101011011000011011000110000000111010010011100111110001111001011010000110100011010001111100111011011010010110000011100011000110011101110100001110100110011100010011111000101010001 0001000000101100100101110100011110101011010000011001101011001000000001111000000101111101010110000010011100001001000100100100110010111101111100101000000011010110101000000001001111010111110011001100111100110110110000111010100010111001011100100101010101010110011101001110010010001010000110101000101011010011111100010110011100101011101011100111111000101111010001011100100110011001101100011101010000011101 0110110010001100000100100010111000001010010100101011100001010011101000001011010100101100000010110000001101011110010010010000110101000000001100001100000100000111101111010100111100100101100101000111100101101001001011110010110000011110111100110101010101001111110111000100100010110100110110100011011001000001101001000001111001100011111010110100011100010001000000011000011010011010011001101101110110101100 0001010010000001111111101010111010100100000101111100010010011010000011001111001001000100101011101110101100001001001011110101110011110101001000111001001111010011100000111101010110110000100100111010001101010000001000100111100100111110101001101000100110100111001111010111110001000001100101001100110100000011110001011111111001001101111100001101001100010000101011010000111100000000011001100100001010001111 1110101101001101010101100101100100101010000000100101000101111010011001101000101101011111100000101101011010000111100100110100100001000001001101010110100011110001110001100111000001010000001100110110101010111101110010011110011011100110110101100100111111101011010111101111000001101000111100001100101110111011001010111111111001000011001000110100101101111011011101110011100111100001111001011101011110100101 0001001001000011111101101100000101011101111011100110010100001110111110001010110001000110011010111000010000110100000011011111111110000001001011011011011010101010010110101011010111010100110011110110111010110111100110010011001111110100111011111100000101111010010000110010011101000000010010000100110101101000100011001100000010111111000000011111100000011111001111011001111010100000000000101101011111101010 0110011110100000010010010001111111000001100010000011000010000101111000100011011101001101110110110011011111111011100101010010011001010111110000011110101101101101100110000011010111011001000011001001010011110110110101110101110111010101110011011100100111001000101111100111000111100000111010001000111010010110010001010001110110101011101110101111110010110101101001011100111001101000010000110010110010010111 0111110010010111011011111010000010010000000100000010001110011011111110010101000111001111101011000111101010011000110101101001000101010001101010011001000100001010110010010100000100010000010110100000011111011111001000111011001111110000010101001101000011111010000111110000110100110110110010000100000110110110001100111000010111001000111011011010000110110000001000010001111101110000010101001000011000011011 1110110111101111001000111000000011110111110101111101001101110001001101100111011010011101010010000000110111101110111111001001001001010011000001110110101110010010010110011101100111011001110000110011101101111101100001011010000110001010010011010100110111110100101011011101111000111110010011011100111100101010100011001100011000110000011101101101101000110101000000011010000110011111101011001101000010010100 1110001101101111111001000110100001001011010001001111101010111011101101001011001100010001111100110100010010001010011001001110011001110100001001010111101000011111011000100001010101001011000000011111001001101010001010110110011100101110001101000010010100001111000011110011001101010110110101010001001100111110011100110001101110000111111001001100101100101011101000000101110001010011011000110000110001000010 1000111101111110010011101010010101111001111001111110101001010001011110010101111001010110010010000001100000010000000101010110100010110101001000100101001001110010001011000001011000111111010011110010111110011010110111010011010110010001110001111110010000110101111110010001001110110111001101010100000100000001000010011100100111000101001000010100110000100010110110010001110100000001111100111001101111011101 1111011111111000110110100110000101011100000110101100010000100110011101000000000011000010010000000011111000100010111010110110110100001110011011100001110001101000100011111100011111000100001011111111011111101000000100010110001110010110111001101000011001011010110000110100110011000100110100010100100011001010111001001111110101001010100000111000110100001111110101101111110100000110100110101100000000101100 1001111100101111000001010111100100100101110111111010001000011101000001010011001101000111101011011101010111011010110110101100111111111101001000111010101000110111000010000001110110100111111011001001110010001011101000101111101011111000000111010011001001010010000100000101000110001011011000101100111110010100101111011110100111000110011011000100101110100100011010001000000000010100111100111011100110100100 0111000010110000001111010110000111101111110010101010011000101101110111110100100101100101111000101001111011000100001000001000000010011101101111011110011110100001110010110001110011011110011001110000101111100110011110001011110001000000010100110110111000001010001010110110100111111100101001101010010111011000100111001110001110101000001000110110110011011110000001011110010111010010110011010101000100011010 0010100011100011000000100100011111100100010100010101111101011110100010110011100110011011111110111000000101001110100000101011001011011100110110111001110001000110010010001010001111111110000000100111001111111110111011001110001000001110101100101101000100001001100111001000010110101110001010000111101111110011001101101111000111110110001101000001110111010101000101110011101111000001111000011000011100110111 0111011010010110001011001001110001100011001100010110101001011111010101010001000010010110110111010111010001111100101000101111101010110010010010100000100100011111100110110111101001010101110110100110011001011111101101001010010111011010100010011001110101011011000111001011000101110001100010010100100110011000111101111101110101101000111100001100010010001111111001101111111110100111001101001010011110100110 1111111101111010000110001011111000001110001001111011110010001111010000010011000111101010001010110110110111101110001100100001101110110011001001110010001011101001000000110011110100101111111110010011111111001110001111000110011011000110111010110100111000010111110111011110100010110110110111001111101101111101001001111111001110111001011110111101001001101100001110101000110101100011010101110000001011001001 1100001111101001001100001011000001011011110000100010010010001010001001000011001011111110111011001010101100111001001011010111111001111011110010111010010100110100111111000111111011100010101010000001011101000001010111000000000001000011011101001010101000000001111110110000111100011000011001001011011000010010000000101011000010100011011100110111010011100111111000110011010101101101001010001111000011001101 1110100111001100101111101110111000010011101100001110000110011111110010110001100010011010101011001110101101100010001001110101011101010000011001001011111001100111101011101001110111110100110101111111100100100000100011010011000011001110011011100000111010100000110001000000110110010010001100110111000000101100110101101111001010001010111110111000110100001001000011100000101011100100110111110100100100011011 0011110110011001000010001110101000101100111011010111110101111100001100010111110101101001010000110110011111110010111111001100011000010000010100111111111011011101110110011010001001000001010000000100001100011110100011110001011001110010110001011011101001010000100100011110101100010010001100101001101111111111101001011011000101111110011010001010111100100001100010001111010010101100010001110100011110101110 1010010010100010110100110110010000101101001010010001110111111100111001001011110110000001001100000011100100010101011101111110000101010010101010111011011000100110010000111110010011001100011011011110010100100000100111110000110100010100010010111101000110111001100101000110110101000101001011111111001111000101011111000010001111010001110010001010111000011010010001111011010100101011010110101001110010011100 1000000100010000000010110011100010010000101110010000011000001110010110000010111101111110111010010011001110101000100000101100100011010000100111101001110000100100011101101101011100001011100001111011011010111001010001010001011110101111101111101100001011101011000011011001000101111110011011100000010000100001010001111011000011010010010110000000001000100110000001110000101001101000000100001111110000101100 1011101111000101101010001000000111000011010010010000001011111000010001011011101011111011111001001000011101001111100110101100110010011000111001111001101110011010000110010011000011100001010111000100001010101001011011001111011100101001111111000101000011110010011000001111010000011101010000000111110011100110010111010001100101011011111001010101000010101100000001101111111100000010101011110110011010111100 1010000001010100000101110100011101000100011010111101010010110011010110110111111010011011100001100110010101101111001010010101011010011010110010011111110111011100101011000100111001110000011001111110100001011011111100011100111110111000000001110101011100011001001101010000111000001101001100000111110110111101101100001110010100111111100011001100100110001000111001000111011101110110000000111111101101101011 0100011001001101110001010110101111000101111100101111111000011100010110001001010101101110111000101101010111110110111000000010011110111110000011110100010111011101111111101101010000111101111100110000001110000010110101101101100010000110010011111110010011111101111011000101010011011100100001111101010011111101000111110110011001000100111000100101100111010111101100111100011011100001110001010010110100101001 0100101000110101000110100000100001011111111000001110100111100100100110111110010010101001001010110101111111000001000101111111110000100010001110001101000010010000101001101110100000001100111000000110001010111001001000101000100111001011111010011101101001111110111011100001011001100010111010110100010100011001010000111010110111000001001110110010010111001000001010110100111110001001101100110011101100000100 0111011100100111110101011011111001001110001111110101101101011100101010111000100010100001000101100001001110110101100100111011000000100100100010101111100111010011010110101100110110101000010100010101010100110101010110011110101100010001101010101011011100100010010111110010000001110111100111000011110010101011011011011001010010110110000110100001111111000011111110010101100111001110110100001101011111111110 1010010101010000011000100111000111110101010111111110011110000111010110011000100000010001100010011111001001010110110101000010011111111010101111000111100100000110010000100111101001100101111101000100101000111001001010100110000000001101111100000100000101010111100000000111101101100001100001011001110111011101001110111111000010011101100111000101110000111110100001011111100111110100011000011001110000011011 1110010000001000100011001111001010001010111001000010001111001000000100101000111100000001111111111010101100011111010010001000110010000100110110101111000001010011010000111100001011110110110001001001101000001111001101100100101011100000101010111011100111111111011001111110110011010100100001001101011011011111001010101010100110100111111101000010000101111100000000001010100111011001111101001110111100100101 0100111110100000011111011111010111100000010100000010101001000001000100101110000001001010101110000110100000101110110100100101001111000100010101010100110101110110100111101010101111110001111010111011001101000001110100110001110110100110001000111010010110111010001001110000100000110101001011000111111010000011000101011100100001010110011001010001011010101010001101001010101111110110011101000110010011011101 1100100111100100111100011100010111111011111100101001001001001010100001100000011100110101111000101011001111011111011000011001110111000110100011011111111000000011010001111010101110100010101000110010111001101000010100110100110110011111011111110111010000110000110111101100000111110001101001111000001011111001000010111110110100000100010110001011011011000010001000001010110101010100100010011101000011110100 0111000111010001100010010100011011010100000010001101110101011111101110011110000011011111110100001011111001111010011100111101011011100000010101011001111111111001001111111011101010111001110110101000101001000001101110010001000011001100100101110000001100010000000110010111110000001000100111010110000111011110101011100111110110000011001100111011100001000010101101011101111100010111001001100001101100011111 0110110101000001011011001010101000101000000000010101100000010111010110011010001011111110100111110000011110100110010100110110000011010100001111111100010100010001101001100110010000011110001110010101010000010010110000110100010111010011001101100110010001110011010110010011101101001101000110111101001111100110111011110110101001001101010010011100100111110110101011110011000110110010001111100010000011110110 0101011110010001110101001000110001011001010101101110110011010100001010100010001000100110001000011110010010010111101001100101101011110100000011001101010111100000110001001110010111011110111101000011111100100001101011100010110001111010011011111010010010011010010100110010011001100100000001101001011000000001000001000000101001111000001111000011100100110001010011111000111010011010001011000110000010101101 1000100111011100110110000000011001000111000100000001100000101000110101001001010100110100000111111001111111100111000101101001100000111101100110000000001100000010001001101011000110010100001001110111001001010001110101110111001000000001010100000110010110110001100100011011110000011011100010100011010000110110110101011111110111000011011100011101100110101110100000001011001001111001010110100001010001001001 1011110000110111010101110011010001111000001011000011101101100111010010101001100010111110111101001111111110111011111101000011011001001011100111001001001011011111011010101110011110011110100011010011001110001000010100001100011111100100000000101101001110111011010111010011010100100101011101011000011111011100101011000011011011111110011100001111000101110011110000110010001101000110100100001110111001101110 1101001011100111111000101000111100111100001101111111101100010011101010011000000000001101011001010000111000100111100110111101011101010001111100001101000100011110011011010100010111101001000011101010111100011100110001000000101111100011111010011000001111111110001111101111001100111011010111111000001110010100100100100000001011011100000000011101100110010101110001100111001000011110011110110000100111010101 0010101111010000110011100010111101101110011111001111111101101001000001000100011110010111001100011110011110101001010011100110000001101101011011011011001110000001001100101000100110100110000111001101100010001010100000111000001000100101111000000000110100110011111110100110100011111100001111100011100000110100000101001010111000100001001110000000101010011010101001100000100110101000011100110011011111100100 0111101001000011101000010001010001011000100001001001110101100001100011011111100011010110110000010100000111100100001010110101111011000111101001011110011101011010111111010001101111100010100001000100001001111010100111011101101010001011100101010001101110001111000000011101100001100010011010011110111101101011011011010001010010010001100110011011101111100110101110010000011010001000111110010101101000101110 1010010001100110000100010101010011101101000000111101000111111111011100110111001010001011111011101100010110110100011010001111011110001101110011111001111010010001111110011111111110100110000010100011001110110010110111111100111000000101110101000001101101100111110110010011111011111010111011010110010111101100101100110010100010001010000010001001000111011100101011010100101000011000101111010000000101111110 1101100100000101011001000111000001110000101011010010001101100111000000101111010001110000010111010001001010011001110110000101000111011101111111000110001111101101100000000100110101000101010010100100000100010100111010111001100010101101010111011000001001100101000100111010101100000100010101001101001001101110111100101000000111111011001100010000010110111010010010110000011011010100011100000010000100010010 1101110011101011100010010000110010100110011101111010001100110011011001111100110000100001101110101110110010110001101011001011100011010111110001101000111101100010101110011101000000001110100111111100101111001111011001111011010010111010000111100000000000001001100011111011100011100001110110110010010110111011111001110000100010111011100001101101001100001100011001110011100110000010100110110100101011011010 0101011110110001111010000111110010010100001101101101111111001011010101001110011110011101100000100101011100100011001011101100001100110100110100000000101101011110110111001011100111111011001110101111001110101010011111000001111101000001000001110101000000010001010110111001000000111011111011000010110100011000000111001111011110100110111001110000001111010111101010110110110111000111011011011011001000101001 1011110100011111100010001010100100110011111001000100111011111011000110100111110101100111110101111011000100110100111111111101100001110100101101000101001101100011000110010111111100001111101100001100011110110000101111010111100010010111111110100000101110110100010111111000011010011001101011101001101001100001110111000000000001010111101010100010110011110000101100111010010001010011111111001111011010100001 1010000000000110100101101011000111101001101010111011110000111110000101011111011111010010101000011110100011101011111011000100111010011100101110101110000110101101000010110101111100110101110101000000001001010110000101101000100110101000101110101000000111010011110111111010010101110000101000100101001110101111110111101011000011000001110010010011101010010100111101101010101100011101000010110010011101111101 0001000100011000110101100101110001110110010101000101010000001101001001101101100110100011111000100100001010110011111011001000000010001011101110101101010101101110001010011000001101011011110110111001001001000011011111000000000010100000000101000101011111100011101001000101110000000010100110001111011101011010111100110010111111111101101001000101000011101001000110010000110100100110111011111000001010010100 0101100011101011111000101000100001001001011001101110010100101100111100101000101110101100001011101010001101000111011010010010110000110101100110000100000101110000000111111000000111110101010010101110001011100101011001110101111110000001011101011111101011110000001110000101001001000110101110011100001010110101001101001010100010011110111010111101100111111100000000110100100110011101011011000010011110101001 0011000101101001001001001010011111011001100010010111001110010101100010011100000001000000100010111110110111111001100101111111111111011101000000011010011110101001001100011110100100000100101011010001101010010010101000110000101010000101010001101011000100001101001010100101111000000010000111001110010101111001110011010111110000001100101000001000111100010111001011100101001100101111101000100101101101101001 1011011010001000110000000010100011011100001110100011101110101100111000101110101111110010101111001110100010010010011011110001110111001011000110010111001110010100101000110111010110011111010000000110111101011101101101101010100010000011011000010101100000011011000101110100100111011000000101111100111011001001011111100110111001111000011111101110000010001101011011001011010101111011010100011100011011101101 1000100111011111101111111111000101110110000101101100111001101110001101010010110011110110001010101001100101110001010101111010001001000101000010100101111000010101000000010100100000010100101101111011010111001100101100011011011011011111000001011001101100001110001100001000011111011010010101001011010111111011101111100111000001011100010100011010100010001110111110100110111011001001011111100010001011110101 1111100110111111011001011110101101010011101011101100010101000001110110010000011000111000101011001101111101110011110101011100101010100010000111101100010001101100111001101100101011010011100110000111111010010111011010001000101001101100101111000100011110101110111111100010011001110011011011010010101010010110110000001001010001000110001100110000011000101111101111000101001000100000110000111100101111000101 1100010001110010001001011011001011011110011010110010111010100100000001100110100001010100000000000011011111011100001010110100111000010101010011101001111011010110011000010001011001010100011000000100111010101111010111001101111001000111101111010100001101110010001001010111011000101010010100111110001110100100010000101001000000000001001001000111110101000110101010001011101000001000110001001010000111111101 0011111100111011100110111000100010011111001110001111101011101001010010001011100000100110011010001100000101110100000100111100001111001000111000001010010100000010110100100110110001101001110101011010100110101110001001101110100110111100000001001000110011000000010000001011101011101011110100111101111010000011111101010010101111110110010010001111110110001101101101000011101000100001111110101101000011100010 1010110101111001001100001010001111010111101001011111100101111101011010100101100101100110010010101111001110011011010000111100010011110110001010010100110110010111100110000101111001110010101001001001100001011101001001011000110000000101010011001101011100010101110010000011111001001000110010010000101101101111101110111101110101011000111011010100110001001001110001010100011110010001011011111001111001110000 0111001111111011101011010110100011011000011010000011101110000101101001001101110111000011100000111000011010011011100100011000001011000001001110110001100000001111110100010101111101100010110101011000111010010001101110101110011100101000001011101011011110101101011110011001011011011001010101000111100001110011000111110011010010000101100110100110001010001100100011010101110000100101010001010011000000100011 0111100100101000101100011100111011000110111100100010110010111111111101001101010111000100100010111011001101101101010000001111011111101010001001110000100101111010101110011010001101111101110110111110010111010101000100111010101101000000100111110011011110001001110101011111011001000010110001010111001010001111100101000000100110100001001010001011111110000100001110100100100001110111110110011011011011001111 0101001101110001001110101101010000100100000111010101010100110101111011010110101010101100001010011001010011010101111000001110100111110000110101000010001101110110000011001100110110001000001001110010101000011110011001000110000111101110110001010011100110000100010010001000000010101000100111010000011100100101100111100001011110001001101111011100101000100111101000010101110101000111100100011110101001100111 1110100100001011111110001010001100100010101101110000001001001101010011011011001011101100001010111100010000100101101101110100101101100111011011111001001100100101111001010010010111110110110010101011110111111100100010001011011001000110110010110100110111000010010011000101101001011101001011111100100001011001011101101110110001010001100100111111100001110001011101001011010000111110110100110001000100100111 1011011110010110111011110011111000010001111010110001100000110000011101001100101011110101010101000100001111010011100111011010111011110000000001110101011100011100111100110001001111101010001101000100010111100001011111100110110100100011101110001001010101110101001001001100111001101111111100101110000101010110111000110110101111110000010100100111110111110011110110011110010110110100110101111011000111000011 0010000010110010101110110010111100000110101111100110010111000101011010110111110011111111101111101100110010111010010110001101011001010000101001010001100011111100000010010011101011101010110010001010000111000111110000000111110110111100101111111010111001010110110110010101000101100100011010100110000101100000011010011100010100100000101111111001001000110101111110100100000000110110001110000111101011101000 0101110011101100100101110101011010100010001100100000100101101000111110001110110100110101011001010001000000010100010000010000001101100011111011111000011001110111000110000011100001100100000101010111000111101010111011001110001001101011000000101110010110110010001110101111100011010101111111001010001001011101111111101100010011110010111101010011110001111100001110011110110111111111001110100000110110010110 1111011001101101110111111000100001000001000101011010010011010000001011101001011000010110110111110010111101101111101110101011101010111000111100011001001000100110110011101100010111110001011000011100010100110000001011111101001011110000000000000000000111101010011110111100101000011110100101101101010000100011100010110000011101000000111100111000100100101110111010000110101000101010111001110101000000011000 1110110100110001110110011100011110001101010010101000110011111100111101110111110001011110111111110010111000010000000011111001000110101010000010111001101111011110111000100010011010111101110111010101011001111100100100000011001111100101000110010100101101100111011001101110100111110010110011100011011011000010001011100000010110110110001110001101001101101100001101010101010110010111010001011010111000010110 0101111000010010111001000100010001010111010101101011010011110110010001011110001001010001010110011000101000010111111111100100011000110111010001100000101010110100010011001011010001111011010111010100000010010110000010100011111110110111110011110011100010010011101110001001111110111000010011010100010100111010000110010011001111001100000001101011101011110000000111011010111010000000011101000101111010010010 0000011100100001110010001000011100010100101011111000110000110110011101101101111010110011111100000000101001101100111010101111011111010010011010111010011100101110111000010110000110110000011001010101111001011000000010101110111001010000011001111010001101011001111111110010011010111001010010100010010011011101010111111100001101111010110101000110001011110110100100111011111010101100110110101001100101101100 0010000001001010000110101101100010110110101101101001100001011110010010101010011110001010010001000101001000111010011110001000100101000100101010000010011010010010001110001010010011100011011001111001111011100011011001110001010000010010101010101000111101000000101110100011011010010000010101011010001100001100001000010001111101001001010000011000110101011111001000001100111010100011111010000110001110011010 0001101001100010011101101100111101001000000111001111111111100000010111100011000010100011000111110100100001100011101100001000111000110001010001100100001101001100100010100010110110110100010100010110100011111000011110010010111100111110010101100011010000001001011100001100000001010100110100000110110111110011011110101000111011111011111100100010001100110100000111110001011111110010010000101011011111100100 0110010000000011001100001111011001011000011000010011101000010110111110101101110101100000010110111011011011011111010111111111110010110000000010111100001111010001001111010101011010100111100000111010000011000100110101100001000010110011001111000101010000011000000101010001110010110010001100011100111011100010011101111000110001111100001101001111110111111100111110110111110010111110110101100111101100110100 0101100101000110001110001010011001111001001110001111111111111111100101111000000001001001110100110011000000100101010001000110011001111111111111101111010001110001000010101111111100000001001001111011110111001001001100011000110110100000110000101110100000010011111001101001110111110110010011011011011111101101010101000010111111001111100000001010000010110001011110100011111111110011101000110111010010000111 0100011110101010000100110100110000011110011001000001001100001110100001100111010010101111000000110011111001011010011110011011011100001010111010010000000001100111010100011001100101110010110011000101100001000010000111000100000001001110110010001001000101101001101010110100011101000000110110010010010110100111001011011111010001000111000100110010001011000000101110101001011111001001001000101000110111000110 1101010000101101100010000000010100110000101011001110011000010101110110101111001111110101101000010100010001000000111111000110111100101001101110100010100001001001001111100101011000000111100000101001111111101000000001101110101100000100100000011001000010110011111101110011101110100000100000000101111110001101010110100011110111011001011101010111101011111010011101100110101101111110011100100110110110101100 1110110111001000011100000101000101110010010011010000001111111110011001011001011110001001100101100101000000101111001010111000010101101111111100111100100101010000110011100001111101110011011000000100001111010110000001010001101010011011011111110010001111100110000101110100110100010111101001001110001010100101011101110111000101011101000001001011010100101000001010011111010110110011101111101011000001001011 0100001111011110101100001001100010111110110010011100101011101000000010100010100010111011110000011111001001000111010010010011001101111011010010100110101100010011100011100101100001110110000001101100110001000100101100000010111100000100110101000100000000000110000011000101010010110001111101010001010011101011110001010100010100100100000001101100011000001001000011101111110100100001011101110110011111000000 0010101011111010011100110101100000010010010111000001011001001000110100001101110111101010010000001101111101000011101101011100110011010001110101111000011011001001110011011110110111011100111010010100110110111000000101110111110110000101100011010101111000110001010110100111100010100100000011110001000000000000000010010001001011001101010000110100100110011011100001101100100101101110001000010111101101100001
cTrader AlgocTrader

【cTrader】ストップロスが決められない人達へ【Tools】

1/14/2021 3/24/2021

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

ストップロスの位置がわからない!

ストップロスはどこに置こう?

エントリーしたいけど、どこにストップロスを置いたらいいか迷うということありませんか?

「そんなの迷う時点で半人前」とか言われてしまえばその通りなんですが、たとえルール通りにストップ決めてトレードしてる人もきっと一度はこんな経験があるんじゃないでしょうか。

(ajinori昔のトレード日誌より抜粋(泣))

もちろん本来はこの負けは負けで受け入れて、そのままぶれずにルール通りにトレードを繰り返すのが正しい姿勢です。

しかし、あまりにもこういうトレードを繰り返すと「もしかしてストップロスのルールを見直した方がいいのかも・・・」「いや、いっそのことストップロスのルールなんて決めないほうが正解なのかも・・・」って気持ちになることもあるんじゃないでしょうか。

 

じゃあこんなことを試してみては

そんな気持ちに陥ってしまったときにもしかしたら役に立つかもしれない手法を紹介します。

というか昔ajinoriがそんな風に思ってしまったときに試していた手法です。お勧めというほどではありませんが、一応、使ってて利益は出せていました

もちろん使い方次第なんですけどね。トレンド判断は間違ってないのに、ストップロスの設定が下手すぎて負けてしまうという方には相性がいいと思います。

 

ストップロスを散らして注文してみる

手法というほどのものでもなく、わからないなら適当に何パターンも入れればいい、という単純思考です。つまりこんな注文をします。

わかりますかね?エントリー時にポジションを分割してストップロスとテイクプロフィットを散らしてます。図ではラベルが重なってて見えてませんが、0.1Lots×10ポジションで合計で1.0Lots持ってます。手動で入れるのは大変なのでcBot化しました。

 

SplashOrder

機能概要

以前、公開したEasyEntryと同じような形でエントリーできます。起動して、(一番小さい)ストップロスにしたい位置でクリックすると、設定した数に分けて注文が入ります

なお、EasyEntryにあるような自動ロット調整機能と待機注文機能はありませんのでご了承ください。

 

パラメータ

Whole Lots

全体のロット数を指定します。これを分割して発注します。合計がこの数値を超えないように、分割後の端数は切り捨てて発注されます。

Split

いくつに分割するか指定します。あまり細かく分けすぎるなどで1発注当たり発注量が最低発注単位を下回ると発注されません

SL Step Pips

何Pipsおきにストップロスを置くか指定します。

Risk Reward Ratio

リスクリワード比を指定します。この数値でストップロスからテイクプロフィットが自動的に設定されます。

Traling Stop

トレーリングストップの有無を指定します。Yesにすると勝手にストップロスが動きます。

 

ダウンロード

ダウンロード後、ダブルクリックしてインストールしてください。

cBotなのでチャートに適用後、発注したいときに▶を押してからチャート上をクリックします。クリックするといきなり発注が入るので注意してください。

 

ソースコード公開

特に説明したいとこがあるわけではないんですが、短いソースコードですし、cAlgo初心者の方には勉強になる部分もあるかもしれませんので公開します。

マウスイベントの使い方や、チャートオブジェクトの描き方、Async系発注の使い方なんかがもしかしたら参考になるかもしれません。

また、プログラムできる方なら、自分のルール仕様に作り直すことも可能でしょう。SLだけ、もしくはTPだけ散らすというのもアリかと。その気になればなかなか検証しがいがありそうですね。

using System;
using cAlgo.API;
using cAlgo.API.Internals;

namespace cAlgo.Robots {
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class SplashOrder : Robot {
        [Parameter("Whole Lots", DefaultValue = 1.0)]
        public double WholeLots { get; set; }

        [Parameter("Split", DefaultValue = 10)]
        public int Split { get; set; }

        [Parameter("SL Step Pips", DefaultValue = 5.0)]
        public double SlStepPips { get; set; }

        [Parameter("Risk Reward Ratio", DefaultValue = 3.0)]
        public double RRR { get; set; }

        [Parameter("Traling Stop", DefaultValue = false)]
        public bool IsTraling { get; set; }

        // --- for order
        private TradeType _tradeType;
        private double _unitVolume;
        private double _minSlPips;

        // --- for line
        private ChartHorizontalLine _slLine;
        private ChartHorizontalLine _tpLine;
        private const string SL_LINE_NAME = "stoploss_splashorder_line";
        private const string TP_LINE_NAME = "takeprofit_splashorder_line";
        private ChartMouseEventArgs _mousePos=null;

        //-----------
        // OnStart
        protected override void OnStart() {
            var unitVol = Symbol.QuantityToVolumeInUnits(WholeLots) / Split;
            if (unitVol < Symbol.VolumeInUnitsMin) {
                Print("unitvolume (WholeLots/Split) is too small!");
                Stop();
                return;
            }
            _unitVolume = Symbol.NormalizeVolumeInUnits(unitVol, RoundingMode.Down);

            // --- place line
            _slLine = Chart.DrawHorizontalLine(SL_LINE_NAME, Ask, Chart.ColorSettings.LosingDealColor);
            _tpLine = Chart.DrawHorizontalLine(TP_LINE_NAME, Bid, Chart.ColorSettings.WinningDealColor);
            _tpLine.LineStyle = _slLine.LineStyle = LineStyle.Dots;

            // --- event
            Chart.MouseMove += DrawLine;
            Chart.MouseDown += ClickOrder;
        }

        //----------------
        // mouse move
        private void DrawLine(ChartMouseEventArgs args) {
            _mousePos = args;
            _tradeType = (args.YValue < Bid ^ args.ShiftKey ? TradeType.Buy : TradeType.Sell);
            var distance = Math.Abs((_tradeType==TradeType.Buy ? Bid : Ask) - args.YValue);
            var slMin = (args.ShiftKey ? distance / RRR : distance);
            var tpMin = (args.ShiftKey ? distance : distance * RRR);
            _slLine.Y = (_tradeType == TradeType.Buy ? Bid - slMin : Ask + slMin);
            _tpLine.Y = (_tradeType == TradeType.Buy ? Bid + tpMin : Ask - tpMin);
            _minSlPips = slMin / Symbol.PipSize;
        }

        //-----------------
        // mouse down
        private void ClickOrder(ChartMouseEventArgs args) {
            var decimals = Symbol.Digits + (int)Math.Log10(Symbol.PipSize);
            for (int i = 0; i < Split; i++) {
                var sl = Math.Round(_minSlPips + i * SlStepPips, decimals);
                var tp = Math.Round(sl * RRR, decimals);
                ExecuteMarketOrderAsync(_tradeType, SymbolName, _unitVolume, ToString(), sl, tp,
                    i.ToString(), IsTraling, (res => { if (!res.IsSuccessful) Print(res.Error.ToString()); }));
            }
            Stop();
        }

        //------------
        // OnTick
        protected override void OnTick() {
            if(_mousePos!=null) DrawLine(_mousePos);
        }

        //-------------
        // OnStop
        protected override void OnStop() {
            Chart.MouseMove -= DrawLine;
            Chart.MouseDown -= ClickOrder;
            Chart.RemoveObject(TP_LINE_NAME);
            Chart.RemoveObject(SL_LINE_NAME);
        }
    }
}

ソースコード非公開のつもりで作り始めたため、(最低限の整形はしたつもりですが)見にくい部分はご容赦ください。コードの書き方や変数命名規則なんかはあまり参考にしない方がいいです。

コード内コメントもほとんどありませんが、わからないとか説明してほしいというところがあったら言っていただければ説明します。あと、間違い見つけたら教えてください。


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

新しいコメント

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

cTrader's Life

© 2025 ajinori