n=int(eval(input()))

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

ans=[0]*n

for i in a:

    ans[i-1]+=1

for k in ans:

    print(k)



n=int(input())

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

ans=[0]*n

for i in a:

    ans[i-1]+=1

print(*ans,sep="\n")



n = int(eval(input()))
a = list(map(int, input().split()))
ans = [0] * n
for i in a:
    ans[i - 1] += 1
for k in ans:
    print(k)

n = int(input())
a = list(map(int, input().split()))
ans = [0] * n
for i in a:
    ans[i - 1] += 1
print(*ans, sep="\n")

-n = int(eval(input())) +n = int(input()) -for k in ans: -    print(k) +print(*ans, sep="\n")