D. Circular Dance codeforces round#529(div3)

NoSuchKey