import collections
N = int(input())
A = list(map(int,input().split()))
B = collections.Counter(A)
C = []
for i in B.keys():
  C.append((i,B[i]))
C.sort()
#print(C)
a = 0
for j in range(len(C)):
    print(C[j][1])
    a += 1
for l in range(N-a):
  print(0)


