Codeforces Round #569 (Div. 2) C. Valeriy and Deque

NoSuchKey