import collections



n = int(eval(input()))

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



c = collections.Counter(data)



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

  print((c[i]))

import collections



n = int(eval(input()))

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



count = [0] * n



for d in data:

  count[d-1] += 1



for c in count:

  print(c)

import collections

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

import collections

n = int(eval(input()))
data = list(map(int, input().split()))
count = [0] * n
for d in data:
    count[d - 1] += 1
for c in count:
    print(c)

-c = collections.Counter(data) -for i in range(1, n + 1): -    print((c[i])) +count = [0] * n +for d in data: +    count[d - 1] += 1 +for c in count: +    print(c)