N=int(input()) A=list(map(int,input().split())) cnt=[0]*(max(A)+1) for i in range(N): cnt[A[i]]+=1 for i in range(max(A),0,-1): cnt[i-1]+=cnt[i] print(*cnt[1:])