Result

WA

Code [DL]

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

stdin

00000000
01101110
10101100
11011001
01101011
01001110
00111101
00000100
00011100
10111100
10011001
00001010
00100110
00101101
11010001
10011011
10001000
00101111
01011011
00010101
01000010
00110111
11101100
11010110
11011011
11010010
10101011
10010000
00000011
01111000
11111110
11111101
01101001
10111110
11111011
01010011
11001000
00001111
00011110
00000000
00000001
10100100
01111010
11100111
10001010
00100100
00000110
00110111
01101101
11001001

stdout

1
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
0
0
0
0
0
0
0
0
0
1
1
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