Result

AC

Code [DL]

$'d'
 \-(!!)()()#

$'i'
 \-i2mc2c(!e!)1a(!!)0()p()z1sc(!!)(!d!)()p(e)#

$'g'
 \-o1s{d}#

$'p'
 \-(!!)--(){g}\
       /      |
       ^  /g0-/
#(!!)-/ \-

$'f'
 \-(!!)(!c!)(c)()2mc2c(!z!)(!y!)(!x!)(y)(){p}(c)()()9q#

$'main'
 \-[00000]{d}p-\
                \
 /{f}-0-\        |
 |    \  >ep-{d}-/
 ^    | /    \
# \-1a/ |    |
        \-{i}/

stdin

2564881273242035095782244069145265703634036184298999541079313419823882605082857186680387779063079386

stdout

0000000000011111112222222222233333333333444444444555555556666666666777777777888888888888889999999999

stderr

strace