Result

WA

Code [DL]

while 1:print(int((8*int(input(),2)+1)**0.5%2))

stdin

11010010
11111101
10111110
00110111
00000110
00100100
00100010
10010101
10110010
01001010
01011011
00101110
01010111
10001000
10011010
01101111
00011100
00010101
00000111
00101101
00000101
01000010
01101001
00000001
11010111
01101011
10011100
11111100
10101011
00000000
00001111
10011001
00011111
00011010
01100100
01100111
01010011
11101001
00000011
01011110
11100111
01011011
11111010
01111000
11001011
00001010
01111100
00100000
01011011
01001110

stdout

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

stderr

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

strace