Rosetta Problems

Well-defined Abbreviation

https://atcoder.jp/contests/arc141/tasks/arc141_f