n = int(input())
l = [0 for i in range(n)]
a = list(map(int, input().split()))
for ai in a:
    l[ai-1] += 1
for li in l:
    print(li)

77ade225e686945936ba73db3a4947a5e57af113
<mask token>

<mask token>
for ai in a:
    l[ai - 1] += 1
for li in l:
    print(li)

n = int(input())
l = [(0) for i in range(n)]
a = list(map(int, input().split()))
for ai in a:
    l[ai - 1] += 1
for li in l:
    print(li)

n = int(input())
l = [0 for i in range(n)]
a = list(map(int, input().split()))
for ai in a:
    l[ai-1] += 1
for li in l:
    print(li)
