Codeforces Round #645 (Div. 2) E. Are You Fired?

NoSuchKey