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