Result

WA

Code [DL]

$ 'j'      #(c){j}(x)-@
@--(!x!)(!c!)(c)(x)g<
$ 'main'@     #(x)(c)-@
 |@      \-uo--
 | \{j}i- \    >#
 9  \    >u-1q/
 \-1a--e/

stdin

5808234690664924008259692122780453641951604516242037796860261319143006994896168315757137352732871984

stdout

stderr

Crash: No valid move

strace