Educational Codeforces Round 19 C. Minimal string

NoSuchKey