Krosh and permutation

Problem Name:
Krosh and permutation
Site:CodeForces
Links:
Tags: