Result

WA

Code [DL]

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

stdin

9055366050251834686889331005820236037448581063420844565169281126769262103345756283522078371629142751

stdout

stderr

Crash: No valid move

strace