import sys

read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines

sys.setrecursionlimit(10 ** 7)



n = int(readline())

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

ans = [0] * n

for aa in a:

    ans[aa - 1] += 1

for i in range(n):

    print((ans[i]))

import sys

read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines

sys.setrecursionlimit(10 ** 7)



n, *a = list(map(int, read().split()))

ans = [0] * n

for i in a:

    ans[i - 1] += 1

print((*ans))

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**7)
n = int(readline())
a = list(map(int, readline().split()))
ans = [0] * n
for aa in a:
    ans[aa - 1] += 1
for i in range(n):
    print((ans[i]))

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**7)
n, *a = list(map(int, read().split()))
ans = [0] * n
for i in a:
    ans[i - 1] += 1
print((*ans))

-n = int(readline()) -a = list(map(int, readline().split())) +n, *a = list(map(int, read().split())) -for aa in a: -    ans[aa - 1] += 1 -for i in range(n): -    print((ans[i])) +for i in a: +    ans[i - 1] += 1 +print((*ans))