Codeforces Round #523 (Div. 2)C. Multiplicity

NoSuchKey