Codeforces Round #675 (Div. 2)C. Bargain

NoSuchKey