import collections



N = int(eval(input()))

A_list = list(map(int, input().split()))

A_collection = collections.Counter(A_list)



for i in range(N):

    print((A_collection[i+1]))

N = int(eval(input()))

A_list = list(map(int, input().split()))

bosses = [0] * N



for i in A_list:

    bosses[i-1] += 1

for boss in bosses:

    print(boss)
import collections

N = int(eval(input()))
A_list = list(map(int, input().split()))
A_collection = collections.Counter(A_list)
for i in range(N):
    print((A_collection[i + 1]))

N = int(eval(input()))
A_list = list(map(int, input().split()))
bosses = [0] * N
for i in A_list:
    bosses[i - 1] += 1
for boss in bosses:
    print(boss)

-import collections - -A_collection = collections.Counter(A_list) -for i in range(N): -    print((A_collection[i + 1])) +bosses = [0] * N +for i in A_list: +    bosses[i - 1] += 1 +for boss in bosses: +    print(boss)