Result

AC

Code [DL]

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

stdin

01100010
00101101
00110111
01111111
11100000
11010111
11011101
00000001
00100100
10110101
01011011
01101001
01111110
10101111
01111000
10011010
11011111
01111000
00011100
00010001
10000110
10101011
11111101
11010010
00000011
10011001
10001000
00010011
11100111
01010100
00011101
11011100
00000000
00000110
01001110
01110110
01010111
01010011
01100100
00010101
00110010
00001111
10000100
10111110
00011011
00101000
00001010
01001110
01000010
00000010

stdout

01100001101100100110011111101000111000010101001110

stderr

strace