Codeforces Round #565 (Div. 3) F.Destroy it!

NoSuchKey