Result

WA

Code [DL]

$
.  v{m}2{a}s}3{<va}2{]<<
>0{>[{?{5}r    @>}}s{ @1%$.
$  ^{               %0<.

stdin

10001011
00111111
10011110
10101011
00101011
01010011
11100111
10001000
11010010
10000011
10111110
10111011
01001110
00000001
01011011
00001101
11111101
00001111
00100100
00100100
01011010
11101101
01001110
01101001
00010101
01001011
01010000
00000110
00111101
01101100
11000001
00011010
00001010
00000000
11011110
01001001
10011001
00101101
10010101
00011100
00000011
00011101
10010111
00110111
10010001
01111000
01011100
10100111
01101101
01000010

stdout

stderr

strace