Rosetta Problems

One Two Three

https://atcoder.jp/contests/agc065/tasks/agc065_e