Rosetta Problems

Wizard in Maze

https://atcoder.jp/contests/abc176/tasks/abc176_d