Rosetta Problems

The Most Powerful Spell

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