n=int(input()) a=list(map(int,input().split())) A=a[0] b=[0]*(A+1) for v in a: b[0]+=1 b[v]-=1 for i in range(1,A+1): b[i]+=b[i-1] print(b[:A])