Result

AC

Code [DL]

using System;class M{static void Main(){for(int i=50;i-->0;)Console.Write((1==Math.Sqrt(Convert.ToInt32(Console.In.ReadLine(),2)*8+1)%2)?1:0);}}

stdin

01111000
01011100
10110110
01010111
10111110
01000010
01010001
00010101
10100001
00011100
00001010
00000011
11010010
11011101
01001000
01111100
10101011
01011011
10011001
10001000
11111110
01111111
01110111
10000000
10001110
00000110
10111110
11101110
01001110
00101101
01101001
10101110
01000101
00000000
00000001
00001111
00110111
10110101
10011010
11111101
11111111
00110110
00110111
11100111
01111001
00010010
00100100
11101000
11111100
11010101

stdout

10001101011110001111000001101110011110010011001000

stderr

strace