Rosetta Problems

Exploring Another Space

https://atcoder.jp/contests/ahc022/tasks/ahc022_a