Rosetta Problems

Chance Meeting

https://atcoder.jp/contests/arc124/tasks/arc124_f