Codeforces Round #629 (Div. 3) D—Carousel

NoSuchKey