Codeforces Round #503 (by SIS, Div. 2) E. Sergey's problem

NoSuchKey