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]o1--(b)(!c!)a1(c)--/
   
  
$ 'd' (dup)
 \-(!d!)(d)(d)#

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

stdin

1064503032991447478281569016069365431412052708867457947311786920020322129051566478022684839528351329

stdout

stderr

Crash: No valid move

strace