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

2739564782660761245152470675314195583167859102832680706316379889465998964458265904488930543619555034

stdout

stderr

Crash: No valid move

strace