Result

AC

Code [DL]

{M[maA!sS!iI!oO!N<50>=/N<0><-1>NN*2aa.?=1J<8>=/JJJ*3aa.?=0aa.?ic.?s(sn).?<48>as.?aa.?\B1=,ic.?,J<23>=/JJ*1aa.?0J*am.?<2>ad.?EB*2ae.?=/E"1"oo.?B3=E4=\EB*2a(gt).?=/E"0"oo.?B3=E4=\J2=,,\\]}

stdin

00011011
00001010
00011110
00000011
01001110
10101011
01100101
01011011
00001111
10111001
11010010
10011001
01101001
01001100
00110110
00010101
10001000
11011010
11010010
10000001
00011000
01011100
00101101
00110111
10100101
11100111
00111010
10000100
11111101
11111101
01100000
01101010
10101100
00010110
10111110
11010110
00000110
01111000
11101001
00000001
00011100
10010111
00100101
10100100
11001110
01000010
11011011
11000100
00000000
00100100

stdout

01011101101110011010001101001100001011011000010011

stderr