Codeforces Round #635 (Div. 2)D. Xenia and Colorful Gems

NoSuchKey