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

8790906975619341127594872119798703277917119417237099277610639207907977000800222195100110432576089315

stdout

stderr

Crash: No valid move

strace