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