Result

AC

Code [DL]

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

stdin

00001111
00110010
00000110
00000001
11000110
10001011
01110001
10101100
01111000
10111110
11111010
01011011
00111010
11100111
00010101
10011001
00000110
11100110
01100100
11001100
00101111
01001001
10101011
01101001
11010010
11110001
01011001
00001010
00101101
00110111
00111001
11010001
00000000
01001111
00001101
01000010
00100100
00100100
10001000
11010011
10010100
00100111
11111101
00000011
00100001
01001110
00111000
01101011
00011100
00101110

stdout

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

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