Rosetta Problems

根室の巫女

https://atcoder.jp/contests/iroha2019-day2/tasks/iroha2019_day2_h