Rosetta Problems

Again ABC String

https://atcoder.jp/contests/arc147/tasks/arc147_f