import numpy as np

N = int(eval(input()))

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

datas = np.zeros(N)

for a in A:

  datas[a-1] += 1

for data in datas:

  print((int(data)))
N = int(eval(input()))

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

datas = {i:0 for i in range(1,N+1)}

for a in A:

    datas[a] += 1

for data in list(datas.values()):

    print(data)
import numpy as np

N = int(eval(input()))
A = list(map(int, input().split()))
datas = np.zeros(N)
for a in A:
    datas[a - 1] += 1
for data in datas:
    print((int(data)))

N = int(eval(input()))
A = list(map(int, input().split()))
datas = {i: 0 for i in range(1, N + 1)}
for a in A:
    datas[a] += 1
for data in list(datas.values()):
    print(data)

-import numpy as np - -datas = np.zeros(N) +datas = {i: 0 for i in range(1, N + 1)} -    datas[a - 1] += 1 -for data in datas: -    print((int(data))) +    datas[a] += 1 +for data in list(datas.values()): +    print(data)