Rosetta Problems

Beautiful Rotation

https://atcoder.jp/contests/xmascon23/tasks/xmascon23_b