Result

AC

Code [DL]

using System;public class M{public 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

00001111
10001100
00100100
01011011
01110111
11101101
01111000
01010101
11110100
01000010
00110111
10000100
00001101
11011100
10100000
11100111
11101110
00000000
11101100
00011100
10011001
00010101
01101001
11101011
00100010
11111101
00000110
10111110
00001100
00001010
10101011
11010000
10010100
01000100
10000101
10001000
11010010
01111000
10111011
11000101
00000011
00110111
00000001
00101101
11010101
00011010
10001011
01010110
01001110
11000000

stdout

10110010011000010101111001110110000111001111000010

stderr

strace