n,*a=list(map(int,open(0).read().split()));c=[0]*n

for q in a:c[q-1]+=1

for d in c:print(d)
n,*a=list(map(int,open(0).read().split()));c=[0]*n

for q in a:c[q-1]+=1

print((*c))
n, *a = list(map(int, open(0).read().split()))
c = [0] * n
for q in a:
    c[q - 1] += 1
for d in c:
    print(d)

n, *a = list(map(int, open(0).read().split()))
c = [0] * n
for q in a:
    c[q - 1] += 1
print((*c))

-for d in c: -    print(d) +print((*c))