from collections import*

n,*a=list(map(int,open(0).read().split()));c=Counter(a)

for i in range(n):print((c[i+1]))
n,*a=list(map(int,open(0).read().split()));c=[0]*n

for q in a:c[q-1]+=1

for d in c:print(d)
from collections import *

n, *a = list(map(int, open(0).read().split()))
c = Counter(a)
for i in range(n):
    print((c[i + 1]))

n, *a = list(map(int, open(0).read().split()))
c = [0] * n
for q in a:
    c[q - 1] += 1
for d in c:
    print(d)

-from collections import * - -c = Counter(a) -for i in range(n): -    print((c[i + 1])) +c = [0] * n +for q in a: +    c[q - 1] += 1 +for d in c: +    print(d)