from collections import Counter

n = int(eval(input()))

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



count = Counter(a)

for i in range(n):

  if i+1 in count:

    print((count[i+1]))

  else:

    print((0))
n = int(input())

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



l = [0]*n

for i in a: l[i-1] += 1

print(*l, sep='\n')

from collections import Counter

n = int(eval(input()))
a = list(map(int, input().split()))
count = Counter(a)
for i in range(n):
    if i + 1 in count:
        print((count[i + 1]))
    else:
        print((0))

n = int(input())
a = list(map(int, input().split()))
l = [0] * n
for i in a:
    l[i - 1] += 1
print(*l, sep="\n")

-from collections import Counter - -n = int(eval(input())) +n = int(input()) -count = Counter(a) -for i in range(n): -    if i + 1 in count: -        print((count[i + 1])) -    else: -        print((0)) +l = [0] * n +for i in a: +    l[i - 1] += 1 +print(*l, sep="\n")