Result

AC

Code [DL]

$ ':'
 \-(!a!)(a)(a)#


$ 'k'
 \                         #(r)(!x!)-@
  \-2m(!q!)[0](!r!)55m--{:}--1g----<
                      /             |
 @-------------------/              |
   \          \                     |
   |           >-qfq(q)ms1{:}{:}s1--/
   \-(!r!)[1]-/

$ 'main' 
 \                 #   @
  \--59m5a---{:}0g<     \---------aq[1]-@
          /        -1s0---2mi{:}[\n\]q<
         /------------------o{k}d2(!d!)-@
        @

stdin

00001111
10101010
00100100
00001010
01101001
01001110
00000110
00011001
11011010
10111001
10111110
01011011
10000101
11100111
01001000
00001000
00010101
10001111
10001000
00100010
00101101
10111000
00000001
11111101
10101111
00111010
10010010
10101011
01101100
11001101
01111000
00110111
10011001
11010010
11101101
00001011
00111101
11100001
00101101
00011100
00000011
11000101
11110101
01111110
00010110
00000000
10111110
01000010
01000011
01011110

stdout

10111110001101001010101100010011110000111000011100

stderr

strace