Result

AC

Code [DL]

module c;integer c,i,d,s;initial begin s=1<<31; c=$fgetc(s); while(!(&c))begin d=0;while(c!=10)begin d=d*2;d=d+c-48;c=$fgetc(s);end i=1;while(d>0)begin d=d-i;	i=i+1;end if(d)begin $write("0 ");end else begin $write("1 ");end c=$fgetc(s);end end endmodule

stdin

11100111
00011100
01010001
01011000
11111101
00000100
00110111
10111110
11101010
10011010
01100001
11010000
00011100
00001111
01011011
10001000
00000110
00000000
00001111
00110001
00010111
00010101
10101011
00101111
10001100
00001010
01100100
00000011
11111100
11010010
10100111
00101101
01000010
11110101
10011001
00100100
01111000
11010111
10010110
01101001
01000110
11110010
11001011
11000011
01001110
10010010
01011100
10111101
11111111
00000001

stdout

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

stderr

strace