Result

WA

Code [DL]

while a=gets()
b=a.to_i 2
i=1
while b>0
b-=i
i+=1
end
p (b ?0:1)
end

stdin

11100111
10100000
10010001
01001100
00100100
00100010
00100100
10101010
11100100
00000011
10010100
00010101
01000010
00000110
00101101
11001111
00000001
11011111
11100110
10001000
10110111
00001010
10111110
10101011
00000000
01001010
00110100
10011001
10000011
10101100
11010010
11001101
01011011
00110111
11011001
11101011
01001110
11100101
11111101
10111011
00000101
00011100
01111000
01001011
11111111
01101001
10001000
00100110
00110011
00001111

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