Codeforces Round #657 (Div. 2)C. Choosing flowers

NoSuchKey