Educational Codeforces Round 74 (Rated for Div. 2) D. AB-string

NoSuchKey