import numpy as np

import math

from collections import defaultdict



d = defaultdict(int)



n = int(eval(input()))

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



for i in A:

    d[i] += 1



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

    print((d[i]))
from collections import defaultdict

n = int(eval(input()))

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



d = defaultdict(int)

for i in A:

    d[i] += 1



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

    print((d[i]))
import numpy as np
import math
from collections import defaultdict

d = defaultdict(int)
n = int(eval(input()))
A = list(map(int, input().split()))
for i in A:
    d[i] += 1
for i in range(1, n + 1):
    print((d[i]))

from collections import defaultdict

n = int(eval(input()))
A = list(map(int, input().split()))
d = defaultdict(int)
for i in A:
    d[i] += 1
for i in range(1, n + 1):
    print((d[i]))

-import numpy as np -import math -d = defaultdict(int) +d = defaultdict(int)