from collections import Counter





n = int(eval(input()))

A = Counter(list(map(int, input().split())))

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

    print((A.get(i, 0)))

n = int(input())

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

ans = [0] * n

for i in A:

    ans[i - 1] += 1

[print(i) for i in ans]

from collections import Counter

n = int(eval(input()))
A = Counter(list(map(int, input().split())))
for i in range(1, n + 1):
    print((A.get(i, 0)))

n = int(input())
A = list(map(int, input().split()))
ans = [0] * n
for i in A:
    ans[i - 1] += 1
[print(i) for i in ans]

-from collections import Counter - -n = int(eval(input())) -A = Counter(list(map(int, input().split()))) -for i in range(1, n + 1): -    print((A.get(i, 0))) +n = int(input()) +A = list(map(int, input().split())) +ans = [0] * n +for i in A: +    ans[i - 1] += 1 +[print(i) for i in ans]