Result

WA

Code [DL]

$ 'main'
 \                      /---o#
  \-0(!x!)--i-{i}--e{~}<
     @---/              \
       \------------------@

$ 'i'
 \                           /-(!q!)(b)a#
  \-1(!b!)0(!c!)--{d}(c)q{~}<
                /            \
@--m(!b!)------/              \
  \--[0001]----(b)(!c!)a1(c)----@
   
  
$ 'd' (dup)
 \-(!d!)(d)(d)#

$ '~'
\
|   /-t-\ #
|  /     \|
\-<       |
   \     /|
    \-f-/ @

stdin

7577137273775133431101072797767020366135317995158573554762885039851503462973760915541758678291640903

stdout

stderr

Crash: No valid move

strace