import collections



n = int(eval(input()))

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



C = collections.Counter(A)

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

  print((C[i]))

n = int(eval(input()))

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



ans = [0] * n



for a in A:

    ans[a-1] += 1



for i in ans:

    print(i)
import collections

n = int(eval(input()))
A = list(map(int, input().split()))
C = collections.Counter(A)
for i in range(1, n + 1):
    print((C[i]))

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

-import collections - -C = collections.Counter(A) -for i in range(1, n + 1): -    print((C[i])) +ans = [0] * n +for a in A: +    ans[a - 1] += 1 +for i in ans: +    print(i)