n=int(raw_input()) l=map(int,raw_input().split()) l.sort() count_=0 for i in range(len(l)): j=i+1 c=1 while j