import numpy as np
import collections

n =  int(input())
a = list(map(int,input().split()))

all = np.zeros(n+1)

c = collections.Counter(a)

for ans in c.values():
    print(ans)
o = len(c)

for i in range(n-o):
    print(0)