Rosetta Problems

Escape from the Hell

https://onlinejudge.u-aizu.ac.jp/problems/2785