import collections



N = int(eval(input()))

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

cnt = collections.Counter(A)

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

    print((cnt[i]))
import collections



N = int(eval(input()))

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

ans = [0] * (N+1)

for i in range(len(A)):

  ans[A[i]] += 1

  

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

  print((ans[i]))
import collections

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

import collections

N = int(eval(input()))
A = list(map(int, input().split()))
ans = [0] * (N + 1)
for i in range(len(A)):
    ans[A[i]] += 1
for i in range(1, N + 1):
    print((ans[i]))

-cnt = collections.Counter(A) +ans = [0] * (N + 1) +for i in range(len(A)): +    ans[A[i]] += 1 -    print((cnt[i])) +    print((ans[i]))