import sys # import pypyjit import itertools import heapq import math import bisect from collections import deque, defaultdict from functools import lru_cache, cmp_to_key # for AtCoder Easy test if __file__ == 'prog.py': pass else: sys.setrecursionlimit(10 ** 6) # pypyjit.set_param('max_unroll_recursion=-1') input = sys.stdin.readline def readints(): return map(int, input().split()) def readlist(): return list(readints()) def readstr(): return input()[:-1] N = int(input()) A = readlist() S = [0] * (A[0] + 1) for a in A: S[0] += 1 S[a] -= 1 for i in range(A[0]): S[i + 1] += S[i] print(*S[:A[0]])