Rosetta Problems

Reading Challenge

https://atcoder.jp/contests/awc0149/tasks/awc0149_c