A. Stages Codeforces Round #499 (Div. 2)

NoSuchKey