Codeforces Round #463 C. Permutation Cycle

NoSuchKey