n = int(eval(input()))

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

nl = {str(i):0 for i in range(n)}

for a in a_list:

    nl[str(a-1)] += 1

for v in list(nl.values()):

    print(("{}".format(v)))
n = int(eval(input()))

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

nl = [0] * n

for a in a_list:

    nl[a-1] += 1

for v in nl:

    print(("{}".format(v)))
n = int(eval(input()))
a_list = list(map(int, input().split()))
nl = {str(i): 0 for i in range(n)}
for a in a_list:
    nl[str(a - 1)] += 1
for v in list(nl.values()):
    print(("{}".format(v)))

n = int(eval(input()))
a_list = list(map(int, input().split()))
nl = [0] * n
for a in a_list:
    nl[a - 1] += 1
for v in nl:
    print(("{}".format(v)))

-nl = {str(i): 0 for i in range(n)} +nl = [0] * n -    nl[str(a - 1)] += 1 -for v in list(nl.values()): +    nl[a - 1] += 1 +for v in nl: