N = int(eval(input()))

A = list(map(int, input().split()))

i = -1

A = sorted(A) + [0]

for n in range(N):

  count = 0

  while(A[i+1] == n+1):

    i += 1

    count += 1

  print(count)
import collections

N = int(eval(input()))

A = list(map(int, input().split()))

count = collections.Counter(A)

for n in range(N):

  print((count[n+1]))
N = int(eval(input()))
A = list(map(int, input().split()))
i = -1
A = sorted(A) + [0]
for n in range(N):
    count = 0
    while A[i + 1] == n + 1:
        i += 1
        count += 1
    print(count)

import collections

N = int(eval(input()))
A = list(map(int, input().split()))
count = collections.Counter(A)
for n in range(N):
    print((count[n + 1]))

+import collections + -i = -1 -A = sorted(A) + [0] +count = collections.Counter(A) -    count = 0 -    while A[i + 1] == n + 1: -        i += 1 -        count += 1 -    print(count) +    print((count[n + 1]))