Result

WA

Code [DL]

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

stdin

6615568170378106511017824616946175188249821607454579984898714046507763069822130796497492407828874576

stdout

stderr

Crash: No valid move

strace