Result

AC

Code [DL]

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

stdin

01011011
00010101
01110001
10000100
00000110
00110111
00001000
01000111
00101101
10111110
00100100
00111100
00001010
11010010
01101111
10011001
00001111
10111000
11001000
00101100
00010000
00000000
11110000
01101001
01100001
10010010
00000011
01111100
01110010
00011100
00000100
01111000
11111101
01000010
01000100
00000000
00011110
10011011
10001110
00000001
10110001
11001100
01001110
10101011
01010110
11100111
10001000
11011000
00100100
11110110

stdout

11001100111011011000010100100101110100010011011010

stderr

strace