Result

WA

Code [DL]

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

stdin

11001001
11111110
11100111
10110101
11000001
00100100
00101101
00011100
00000110
01011011
00101001
01111000
11011010
00010100
10001000
01111111
10111110
01110111
00010101
11111101
01100110
00000001
01100111
00001010
11000110
10001101
10101011
10001110
01000010
00110010
11010010
01101110
11110110
00001111
01111000
11001000
01101001
00000011
01011101
11110111
00011100
00000000
11100011
10011001
00110111
00011010
11000101
10110011
10000000
01001110

stdout

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

stderr

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

strace