n = int(input()) a = [int(x) for x in input().split()] ans = [] for i in range(1, max(a) + 1): ans.append(len([x for x in a if x >= i])) print(*ans)