Result

WA

Code [DL]

a5*>80>2*i68*-+$1-:?v~iv
>  ^  ^            $<
>;vv?:v?=,2*+1:@:{:}<:~<
?  >1-              ^
: 0   1
- >   v
^1~~n <

stdin

10111110
00000011
10011001
10011010
00010000
01001101
00001000
10110110
01101001
00010101
00101111
00000100
00000001
01000010
11001001
10011101
01011110
11111101
11110010
11100000
10110111
00010010
01000111
10101011
01000010
11000100
00101101
11011000
00100100
11010010
00011100
01111000
00001111
10001000
11100111
10010110
01011011
01110001
00000110
10000001
10010011
00000000
11001011
00110111
10001101
10101110
01001110
00010111
01101001
00001010

stdout

1

stderr

strace