import sys readline=sys.stdin.readline N=int(readline()) A=list(map(int,readline().split())) max_A=max(A) B=[0]*(max_A+1) for a in A: B[0]+=1 B[a]-=1 for a in range(1,max_A+1): B[a]+=B[a-1] print(*B[:max_A])