Result

WA

Code [DL]

a=process.stdin;
a.resume();a.on('data',n=>console.log((8*parseInt(n,2)+1)**0.5%2-1?0:1))

stdin

00100100
00111001
11110001
01001110
10001000
10010110
00001010
00101011
11001100
11100111
11001011
00001111
00000110
00110110
10101111
00111101
00011011
11000011
00001010
10001110
00111011
01111010
01111000
00000001
00010101
01000101
10001000
01011110
01001111
01011011
11010010
01101001
10101011
11010110
00101101
01100111
10011000
00000011
00000000
10111110
10011001
10000101
10100101
01000010
10100000
11111101
11011001
00011100
00110111
01011001

stdout

1

stderr

strace