Rosetta Problems

Repeated Spell

https://onlinejudge.u-aizu.ac.jp/problems/0341