import sys

input = sys.stdin.readline

sys.setrecursionlimit(10**7)



N = int(eval(input()))

dic = {}

for i in range(N):

    dic[i] = 0

for a in list([int(x)-1 for x in input().split()]):

    dic[a] += 1

for i in range(N):

    if dic.get(i):

        print((dic.get(i)))

    else:

        print((0))

import sys

input = sys.stdin.readline

sys.setrecursionlimit(10**7)



N = int(eval(input()))

A = list([int(x)-1 for x in input().split()])

dic = {}

for a in A:

    dic[a] = dic.get(a, 0)+1

for i in range(N):

    print((dic.get(i, 0)))
import sys

input = sys.stdin.readline
sys.setrecursionlimit(10**7)
N = int(eval(input()))
dic = {}
for i in range(N):
    dic[i] = 0
for a in list([int(x) - 1 for x in input().split()]):
    dic[a] += 1
for i in range(N):
    if dic.get(i):
        print((dic.get(i)))
    else:
        print((0))

import sys

input = sys.stdin.readline
sys.setrecursionlimit(10**7)
N = int(eval(input()))
A = list([int(x) - 1 for x in input().split()])
dic = {}
for a in A:
    dic[a] = dic.get(a, 0) + 1
for i in range(N):
    print((dic.get(i, 0)))

+A = list([int(x) - 1 for x in input().split()]) +for a in A: +    dic[a] = dic.get(a, 0) + 1 -    dic[i] = 0 -for a in list([int(x) - 1 for x in input().split()]): -    dic[a] += 1 -for i in range(N): -    if dic.get(i): -        print((dic.get(i))) -    else: -        print((0)) +    print((dic.get(i, 0)))