Codeforces Round #597 (Div. 2) C. Constanze's Machine

NoSuchKey