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