from collections import Counter



def LI():return list(map(int,input().split()))



n=int(eval(input()))

a=LI()

c=Counter(a)



for i in range(1,n+1):

    ans=c[i]

    print(ans)



from collections import*

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

for i in range(n):print((c[i+1]))
from collections import Counter


def LI():
    return list(map(int, input().split()))


n = int(eval(input()))
a = LI()
c = Counter(a)
for i in range(1, n + 1):
    ans = c[i]
    print(ans)

from collections import *

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

-from collections import Counter +from collections import * - -def LI(): -    return list(map(int, input().split())) - - -n = int(eval(input())) -a = LI() +n, *a = list(map(int, open(0).read().split())) -for i in range(1, n + 1): -    ans = c[i] -    print(ans) +for i in range(n): +    print((c[i + 1]))