Rosetta Problems

Good morning

https://atcoder.jp/contests/abc245/tasks/abc245_a