Rosetta Problems

Christmas Present 2

https://atcoder.jp/contests/abc334/tasks/abc334_f