Permutations again

Problem Name:
Permutations again
Site:CodeForces
Links:
Tags:
Problem setters: