from collections import Counter n = int(input()) a = list(map(int, input().split())) mx = max(a) c = Counter(a) cur = 0 b = [] used = set() for i in range(mx): b.append(n-cur) if i+1 in used: continue cur += c[i+1] used.add(i+1) print(*b)