Rosetta Problems

The Third

https://atcoder.jp/contests/past201912-open/tasks/past201912_c