N = int(eval(input()))

from collections import Counter as C

l = dict(C((int(x) for x in input().split())))

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

    print((l.get(x,0)))
n = int(eval(input()))

al = [int(x) - 1 for x in input().split()]

a = []

count = 0

for _ in [0] * n:

    a.append(0)

for x in al:

    a[x] += 1

    count += 1

for x in a:

    print(x)
N = int(eval(input()))
from collections import Counter as C

l = dict(C((int(x) for x in input().split())))
for x in range(1, N + 1):
    print((l.get(x, 0)))

n = int(eval(input()))
al = [int(x) - 1 for x in input().split()]
a = []
count = 0
for _ in [0] * n:
    a.append(0)
for x in al:
    a[x] += 1
    count += 1
for x in a:
    print(x)

-N = int(eval(input())) -from collections import Counter as C - -l = dict(C((int(x) for x in input().split()))) -for x in range(1, N + 1): -    print((l.get(x, 0))) +n = int(eval(input())) +al = [int(x) - 1 for x in input().split()] +a = [] +count = 0 +for _ in [0] * n: +    a.append(0) +for x in al: +    a[x] += 1 +    count += 1 +for x in a: +    print(x)