Rosetta Problems

Always Perfect

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