Rosetta Problems

Avoid Boring Matches

https://atcoder.jp/contests/arc169/tasks/arc169_e