Rosetta Problems

Percepts of Atcoder

https://atcoder.jp/contests/s8pc-5/tasks/s8pc_5_h