Result

AC

Code [DL]

import std.stdio;import std.conv;import std.math;void main(){for(;;){write(sqrt(to!int(readln()[0..8],2)*8+1.)%2==1?1:0);}}

stdin

01000001
01111000
00010101
01011110
10001001
11100111
10110100
11010001
01111011
00000110
00000001
10000000
11011110
11001111
10101001
10110110
10000010
10010111
01001111
10010110
10000100
11100011
11001001
10011010
01000010
10111110
00001111
11111101
01001110
10001000
00000000
00001010
00110111
11110000
11111101
01101001
00100100
00000110
10101000
10011001
01011011
10101011
10111111
10010001
10010101
11010010
00101101
00000011
00011100
10110010

stdout

01100100011000000000000011111111101111011100011110

stderr

core.exception.RangeError@/volume/CODE.d(1): Range violation
----------------
??:? _d_arrayboundsp [0x4470e2]
??:? _Dmain [0x43c93d]

strace