import bisect N=int(input()) A=list(map(int,input().split())) A.sort() res=[] for i in range(A[-1]): x=bisect.bisect(A,i) res.append(N-x) print(*res)