Result

AC

Code [DL]

console.log((""+require("fs").readFileSync(0)).replace(/.+/g,q=>+!(`0b${q}001`**.5%1)))

stdin

01001111
11000011
00100100
01110100
10101011
11111011
00110011
00011011
11100111
00111010
01011110
00001111
00000110
10010100
11010010
11001001
00001001
11111101
11101000
00101100
00010010
10111000
01000010
01000010
00100000
01010010
00011100
00001010
10011001
11001101
00101101
10101001
01101001
00000001
01100110
10001000
00000011
11111101
01001110
01100111
10110100
00010101
01011011
01001100
01100001
01111000
10111110
01110000
00000000
00110111

stdout

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

stderr

strace