Rosetta Problems

Escape from the forest

https://marisaoj.com/problem/181