Result

WA

Code [DL]

for(;;)print(+!(Math.sqrt(parseInt(java.lang.System.in.readLine(),2)*8+1)%1))

stdin

01011111
01011011
01111000
00101100
00000011
00010101
01010100
01001010
10111100
01101101
10011001
01110110
10110101
00010100
00000011
00010110
11111101
01101100
11101111
10100101
00100100
00001111
01000010
01011000
11010010
01001110
00000000
01000101
01100011
00110111
00000001
10011100
01100101
00110101
00000001
00001010
11100111
00011100
10101101
10111110
10001000
10101011
01000000
01101001
00101101
11011101
10111011
00000110
01001011
11100100

stdout

stderr

js: uncaught JavaScript runtime exception: TypeError: Cannot find function readLine in object java.io.BufferedInputStream@449b2d27.

strace