Codeforces Round #465 (Div. 2) D. Fafa and Ancient Alphabet

NoSuchKey