Result

AC

Code [DL]

$<.map{|l|p 2[1-(l.to_i(2)*8+1)**0.5%1]}

stdin

00101111
10001011
00110110
10001000
00000110
10010100
00000001
10110001
00010001
00001111
11101110
00000011
00001100
01111000
00110111
01001010
11010010
01000010
11010111
00010101
11111101
00001010
00101101
10111110
11111110
01111011
00100100
11000101
01001110
11000011
00000111
11010101
11111111
10111010
01101001
10001110
00000000
11001100
11100110
10011000
10001000
11100111
10011001
11010011
01011011
11100111
10101011
00011100
10111101
00001101

stdout

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

stderr

strace