New Year Permutations

Problem Name:
New Year Permutations
Site:CodeForces
Links:
Tags:
Problem setters: