Rosetta Problems

XXYYX

https://atcoder.jp/contests/arc157/tasks/arc157_a