Codeforces Round #635 (Div. 2) E. Kaavi and Magic Spell

NoSuchKey