codeforces B. Dreamoon Likes Permutations

NoSuchKey