from collections import Counter def young_diagram(A): counter = Counter(A) max_A = max(A) B = [0] * (max_A + 1) for k, v in counter.items(): B[k] += v for i in range(max_A - 1, -1, -1): B[i] += B[i + 1] return B[1:] N = int(input()) A = list(map(int, input().split())) print(*young_diagram(A))