Result

WA

Code [DL]

loop{p ((8*gets.to_i(2)+1)**0.5%2).to_i}

stdin

11010110
00101101
10101011
10101110
01111000
11010010
01011011
00110111
11100001
00010101
01101001
00000011
00001111
11111101
01011100
10001000
11111101
10011001
00000110
10010010
11101111
01000010
00101101
00000001
11101001
10010000
00010010
00011001
01111011
11100111
00101001
10101010
00111000
01100001
00100010
00011100
10100000
10001110
10011100
00000000
11111111
10111110
01110110
01001110
01001101
01011110
10001011
11111011
00001010
00100100

stdout

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

stderr

/volume/CODE:1:in `to_i': wrong number of arguments (given 1, expected 0) (ArgumentError)
	from /volume/CODE:1:in `block in <main>'
	from /volume/CODE:1:in `loop'
	from /volume/CODE:1:in `<main>'

strace