Result

WA

Code [DL]

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

stdin

11010000
00000000
00111110
10111110
11101110
10011001
01001110
10101011
00001110
11010010
00100100
10100110
11000110
01011011
00001010
00010111
01111111
00000100
01010010
00011100
10110011
10011001
00110110
00110111
01111100
01101001
00000001
01111000
11001110
11111101
01010000
00101101
00000011
01101000
01010001
01010100
11110110
00001111
10001110
00010101
01011010
11001100
11100111
00100100
11101001
11111001
10001000
01000010
00000110
10001111

stdout

0
1
0
1
1
1
1
1
0
1
1
0
1
1
1
1
1
1
1
1
1
1
0
1
1
1
1
1
0
1
1
1
1
0
1
1
0
1
1
1
0
0
1
1
1
0
1
1
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