Result

WA

Code [DL]

while a=gets;p (1+8*a.to_i 2)**0.5%1?0:1;end

stdin

01011100
10101001
00000001
01001110
01010111
00000000
00001111
10110000
01011011
10001000
10001101
01101001
10110101
11100111
01110100
00101110
01111111
10011101
11111010
10000001
11101111
01010011
01011011
10000111
00110001
11010010
00000011
01110101
00000110
11110001
00111100
11110011
00011100
00101101
00110111
00001010
10101011
00000000
11111101
11111011
00010101
11000010
00100100
10011001
01111000
01000010
10111110
01000110
00001110
10011110

stdout

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

stderr

strace