n=int(input()) a=list(map(int,input().split())) def f(x): if x==0: return n return f(x-1)-a.count(x) b=[str(f(i)) for i in range(max(a))] print(" ".join(b))