Rosetta Problems

3.06

https://atcoder.jp/contests/APG4b/tasks/APG4b_bw