Result

WA

Code [DL]

{M[m(_a)A!(_s)S!(_o)O!(_i)I!
(_i)<50>=
/(_i)
    (_i)*(_o)(on).?
    (_i)(_i)*<1>(_a)s.?=
\]}

stdin

00010101
10111110
11100010
01110100
00000001
00110111
01001000
10001000
11111101
11011000
00100100
11100111
01010100
01000110
00000000
00011100
10110110
11110001
11111101
01111000
10101011
00000110
10001010
10100110
10111000
00111111
11010001
10011001
01110111
01101110
11001101
00001010
01011011
00101101
01000010
00010010
11010010
11000010
10000110
00000011
01000011
11100100
01101001
00011011
01011010
11010100
00001111
11010010
01001110
01010010

stdout

5049484746454443424140393837363534333231302928272625242322212019181716151413121110987654321

stderr

strace