Result

AC

Code [DL]

a5*>80$>$2*i68*-+$1-:6$0$?.i~~~~:1+0}01.
 <v!?:}+{=,2*+1:@:{:}-1<
  >{n~~1-:3$0$?.;

stdin

11101100
00111110
01000010
00100100
00010101
10101011
00000110
00000000
11111010
10000011
10100011
10111110
11110101
01101001
00011011
00001111
00101101
11100111
11010010
01011011
10110000
00110111
11000001
11111101
10010011
01110100
01111000
11010110
10011001
10101110
01001110
01001111
00101101
00001010
00011100
01101010
00000011
10111110
00110011
00000001
10001000
10000000
10010001
11101001
11111111
01000101
10011000
11000100
11101101
11100110

stdout

00111111000101011111010100101010111011011000000000

stderr

strace