Result

WA

Code [DL]

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

stdin

00100100
11111011
10111111
00000000
10111110
01011111
11111001
00011100
01100010
11111101
00010101
10001000
00000110
00111011
10011001
11111010
01001110
01111100
10100111
00100000
01000010
00110111
00001111
00000001
00100010
00010000
00010011
00011101
01101001
00011010
11100101
11000101
11010010
01011110
01111000
10000110
11110010
00000011
10101011
11101001
00001111
11000111
11100111
01101001
01011011
11010111
00011111
00001010
00111010
00101101

stdout

72

stderr

strace