input() A = list(map(int, input().split())) B = [] cum_sum = [0] * (max(A) + 1) for a in A: cum_sum[a] += 1 for i in range(1, len(cum_sum)): cum_sum[i] += cum_sum[i - 1] for j in range(1, A[0] + 1): B.append(cum_sum[-1] - cum_sum[j - 1]) print(*B)