Result

WA

Code [DL]

while 1:print((not(int(input())*8+1)**.5%1)*1)

stdin

00000110
11111101
01000010
11001001
00000011
10011001
11011110
10001000
10101011
10011001
00011100
01101010
10101010
00001010
00110111
10111001
11010010
01111000
00011111
00111110
00001111
00101101
11001010
01110111
00010101
01101001
11011101
10010110
00110001
00000000
00010101
10111101
01111001
10101110
10111110
10101000
00100100
00000001
01001110
11110101
10000011
10110000
11100111
01011011
01111111
01010110
00110011
11101000
00101001
01010010

stdout

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0

stderr

Traceback (most recent call last):
  File "/volume/CODE", line 1, in <module>
    while 1:print((not(int(input())*8+1)**.5%1)*1)
EOFError: EOF when reading a line

strace