A. Payment Without Change(Codeforces Round #598 (Div. 3))

NoSuchKey