import collections

N = int(eval(input()))

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

c = collections.Counter()

for b in boss:

    c[b] += 1

for i in range(1,N+1):

    print((c[i]))

import sys

from collections import Counter



sys.setrecursionlimit(10 ** 8)

ini = lambda: int(sys.stdin.readline())

inm = lambda: map(int, sys.stdin.readline().split())

inl = lambda: list(inm())

ins = lambda: sys.stdin.readline().rstrip()

debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))



N = ini()

ac = Counter(inl())





for i in range(1, N + 1):

    print(ac[i])

import collections

N = int(eval(input()))
boss = list(map(int, input().split()))
c = collections.Counter()
for b in boss:
    c[b] += 1
for i in range(1, N + 1):
    print((c[i]))

import sys
from collections import Counter

sys.setrecursionlimit(10**8)
ini = lambda: int(sys.stdin.readline())
inm = lambda: map(int, sys.stdin.readline().split())
inl = lambda: list(inm())
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))
N = ini()
ac = Counter(inl())
for i in range(1, N + 1):
    print(ac[i])

-import collections +import sys +from collections import Counter -N = int(eval(input())) -boss = list(map(int, input().split())) -c = collections.Counter() -for b in boss: -    c[b] += 1 +sys.setrecursionlimit(10**8) +ini = lambda: int(sys.stdin.readline()) +inm = lambda: map(int, sys.stdin.readline().split()) +inl = lambda: list(inm()) +ins = lambda: sys.stdin.readline().rstrip() +debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw)) +N = ini() +ac = Counter(inl()) -    print((c[i])) +    print(ac[i])