codeforces div3 501 B Obtaining the String

NoSuchKey