Result

ERROR

Code [DL]

int i,a,b;main(){while(1){i=0;b=9;while(b--)i=i*2|getchar()&1;i/=2;while(i>0)i-=++b;putchar(i?48:49);}}

stdin

10111110
10110001
10100111
11100111
00010010
00000110
00001100
01111101
11101110
10101011
11001010
00101101
10001000
00101110
01000010
00111010
00110111
00010000
10100001
00100100
10100100
10100110
00111110
00000001
11111101
01001110
11111100
00010101
10001001
00001111
10111010
01111000
10111111
01011101
11010010
00011100
01101001
00000000
10110110
01101001
10011001
10110010
00000010
00111100
01101011
11111101
01011011
00001010
00000011
11010011

stdout

stderr

strace