Rosetta Problems

F.Labyrinth

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1840