Codeforces Round #617 (Div. 3) E1. String Coloring (easy version)

NoSuchKey