Educational Codeforces Round 60 D. Magic Gems

NoSuchKey