Rosetta Problems

Duplicated?

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