n=int(input()) a=list(map(int,input().split())) b=[str(sum(map(lambda x:x<=i,a))) for i in range(max(a))] print(" ".join(b))