Result

WA

Code [DL]

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

stdin

11111100
00010101
10001000
10101001
00000000
00111101
00110000
11111101
11100111
00110010
10011011
00001010
00011011
00001111
00100100
01110100
00100000
00111110
01001110
10001000
00000011
10001110
11001110
01010101
00110111
10101011
00011100
10110010
00101101
00001001
10110111
10011001
11010111
01011011
01100110
01000010
11001111
11000101
00000001
00000110
00101000
11010100
10111110
00001111
10110101
11000111
01111000
10010110
11010010
01101001

stdout

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

stderr

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

strace