Supernumbers in a permutation

Problem Name:
Supernumbers in a permutation
Site:Spoj
Links:
Tags:
Problem setters: