Totient in permutation (easy)

Problem Name:
Totient in permutation (easy)
Site:Spoj
Links:
Tags:
Problem setters: