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