Funny Permutation

Problem Name:
Funny Permutation
Site:CodeForces
Links:
Tags:
Problem setters: