Rosetta Problems

3.05

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