Result

WA

Code [DL]

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

stdin

11111110
10101011
10100110
01101001
01000110
11111101
00101101
10101110
01001110
00100101
10101011
00111111
00111010
00011100
11100010
01000010
10100011
00001111
10001100
00110111
10001001
11011101
10101001
00100011
01011110
10111100
00000011
00011100
01110100
10001000
10011001
00000000
01101010
11010010
10000111
01011101
11100111
00000110
11011001
01010011
00010101
10111110
00100100
01011011
01001101
00001010
01111000
10111000
10010100
00000001

stdout

0

stderr

strace