Rosetta Problems

Social Distance

https://atcoder.jp/contests/arc113/tasks/arc113_f