Codeforces Round #209 B. Permutation

NoSuchKey