Result

AC

Code [DL]

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

$ 'g'
 \            #(r)(!x!)i(!x!)-@
  \-80--(!r!)---{:}0g-------<
     /                       |
     |   /-0-                | 
     \-a--   >-q[0]im2(r)s1--/
         \-1-


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

$ 'main' 
 \                  #
  \--59m5a---{:}0g-<
          /         \
          |          |
          \o{k}{g}s1-/

stdin

00010101
10011001
11000111
01011011
10111110
11100111
00110111
11010000
11011010
01000010
00100000
00001100
11111100
11111101
10100100
01010001
11101010
00000110
10000100
01001110
00000001
00011100
10100000
00100100
10000010
01101001
01111000
01111000
11000101
11010010
00101101
00000000
10111011
11001100
10101011
11001111
00110111
00001010
01101100
10001000
01111011
00011011
00001111
10110001
00101111
10100001
00110011
10101100
00000011
01111101

stdout

11011110010001000101110101110111001011010010000010

stderr

strace