Rosetta Problems

Homework from Zhejiang

https://atcoder.jp/contests/xmascon21/tasks/xmascon21_h