import sys



n = int(eval(input()))

A = list(map(int, sys.stdin.readline().split()))



ans = [0] * n



for i in A:

    ans[i-1] += 1



for j in ans:

    print(j)
import sys



n = int(eval(input()))

A = list(map(int, sys.stdin.readline().split()))



ans = [0] * n



for i in A:

    ans[i-1] += 1



print(('\n'.join(map(str, ans))))
import sys

n = int(eval(input()))
A = list(map(int, sys.stdin.readline().split()))
ans = [0] * n
for i in A:
    ans[i - 1] += 1
for j in ans:
    print(j)

import sys

n = int(eval(input()))
A = list(map(int, sys.stdin.readline().split()))
ans = [0] * n
for i in A:
    ans[i - 1] += 1
print(("\n".join(map(str, ans))))

-for j in ans: -    print(j) +print(("\n".join(map(str, ans))))