n = int(input())
a = list(map(int, input().split()))
ans = [0] * n
for boss in a:
    ans[boss - 1] += 1
for sub in ans:
    print(sub)

23dc358080639f9787a05cb193d7a381916e6130
<mask token>

<mask token>
for boss in a:
    ans[boss - 1] += 1
for sub in ans:
    print(sub)

n = int(input())
a = list(map(int, input().split()))
ans = [0] * n
for boss in a:
    ans[boss - 1] += 1
for sub in ans:
    print(sub)
