Codeforces 1330 B. Dreamoon Likes Permutations

NoSuchKey