N=int(eval(input()))

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



import collections



c = collections.Counter(A)





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

    print((c[i]))
from collections import Counter

N=int(eval(input()))

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

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

    print((A[i]))
N = int(eval(input()))
A = list(map(int, input().split()))
import collections

c = collections.Counter(A)
for i in range(1, N + 1):
    print((c[i]))

from collections import Counter

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

+from collections import Counter + -A = list(map(int, input().split())) -import collections - -c = collections.Counter(A) +A = Counter(list(map(int, input().split()))) -    print((c[i])) +    print((A[i]))