Rosetta Problems

Find the Regulars

https://atcoder.jp/contests/awc0148/tasks/awc0148_a