from collections import Counter

N = int(eval(input()))

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



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

  if i in A: print((A[i]))

  else: print((0))
from collections import Counter

n = int(eval(input()))

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

ans = [0] * n

for x,y in list(A.items()):

    ans[x-1] = y

for i in ans: print(i)
from collections import Counter

N = int(eval(input()))
A = Counter(list(map(int, input().split())))
for i in range(1, N + 1):
    if i in A:
        print((A[i]))
    else:
        print((0))

from collections import Counter

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

-N = int(eval(input())) +n = int(eval(input())) -for i in range(1, N + 1): -    if i in A: -        print((A[i])) -    else: -        print((0)) +ans = [0] * n +for x, y in list(A.items()): +    ans[x - 1] = y +for i in ans: +    print(i)