Rosetta Problems

Good Game

https://atcoder.jp/contests/xmascon18/tasks/xmascon18_g