Rosetta Problems

At Most Two

https://atcoder.jp/contests/tkppc6-1/tasks/tkppc6_1_g