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=[f(i) for i in range(n+1)] print(b)