Rosetta Problems

Only one of two

https://atcoder.jp/contests/abc341/tasks/abc341_d