Result

WA

Code [DL]

a5*>80$>$2*i68*-+$1-:6$0$?.i~~~~:1+0}04.
;
>  ^
?
 <v?:}+{=,2*+1:@:{:}-1<
: >{nv
^-1~~<

stdin

11101110
00110111
01100111
10100000
10011001
00101111
01000001
11111101
01000010
00101101
01001110
00000011
01111111
00011100
11010010
01011011
11110101
01100001
01101011
00000000
00001111
10000010
10101110
01110101
00010101
10111110
11100111
10101011
00000110
10110011
10000111
00001110
01010010
11110011
10111001
10001000
10001000
11100001
00100100
00101010
10111010
01101001
11011010
00011100
00000001
11110000
00001010
01011010
11000011
01111000

stdout

00000000000000000002000000000000000000000000100000

stderr

strace