Rosetta Problems

Seating Order at the Round Table

https://atcoder.jp/contests/awc0141/tasks/awc0141_d