from collections import Counter

def main():

    n = int(eval(input()))

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

    cnt = [0] * n

    ac = Counter(a)

    for i in range(n):

        cnt[i] = ac[i+1]

    for i2 in range(n):

        print((cnt[i2]))





if __name__ == '__main__':

    main()
import sys

read = sys.stdin.read

readlines = sys.stdin.readlines

from math import pi

def main():

    n, *a = map(int, read().split())

    cnt = [0] * n

    for ae in a:

        cnt[ae-1] += 1

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



if __name__ == '__main__':

    main()

from collections import Counter


def main():
    n = int(eval(input()))
    a = list(map(int, input().split()))
    cnt = [0] * n
    ac = Counter(a)
    for i in range(n):
        cnt[i] = ac[i + 1]
    for i2 in range(n):
        print((cnt[i2]))


if __name__ == "__main__":
    main()

import sys

read = sys.stdin.read
readlines = sys.stdin.readlines
from math import pi


def main():
    n, *a = map(int, read().split())
    cnt = [0] * n
    for ae in a:
        cnt[ae - 1] += 1
    print(*cnt, sep="\n")


if __name__ == "__main__":
    main()

-from collections import Counter +import sys + +read = sys.stdin.read +readlines = sys.stdin.readlines +from math import pi -    n = int(eval(input())) -    a = list(map(int, input().split())) +    n, *a = map(int, read().split()) -    ac = Counter(a) -    for i in range(n): -        cnt[i] = ac[i + 1] -    for i2 in range(n): -        print((cnt[i2])) +    for ae in a: +        cnt[ae - 1] += 1 +    print(*cnt, sep="\n")