n=int(eval(input()))

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

R=[0]*n

for a in A:

  R[a-1]+=1

for r in R:

  print(r)
#!/usr/bin python3

# -*- coding: utf-8 -*-



import sys

input = sys.stdin.readline



def main():

    N = int(eval(input()))

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

    ret = [0]*N

    for a in A:

        ret[a-1]+=1

    print(('\n'.join(map(str, ret))))



if __name__ == '__main__':

    main()
n = int(eval(input()))
A = list(map(int, input().split()))
R = [0] * n
for a in A:
    R[a - 1] += 1
for r in R:
    print(r)

#!/usr/bin python3
# -*- coding: utf-8 -*-
import sys

input = sys.stdin.readline


def main():
    N = int(eval(input()))
    A = list(map(int, input().split()))
    ret = [0] * N
    for a in A:
        ret[a - 1] += 1
    print(("\n".join(map(str, ret))))


if __name__ == "__main__":
    main()

-n = int(eval(input())) -A = list(map(int, input().split())) -R = [0] * n -for a in A: -    R[a - 1] += 1 -for r in R: -    print(r) +#!/usr/bin python3 +# -*- coding: utf-8 -*- +import sys + +input = sys.stdin.readline + + +def main(): +    N = int(eval(input())) +    A = list(map(int, input().split())) +    ret = [0] * N +    for a in A: +        ret[a - 1] += 1 +    print(("\n".join(map(str, ret)))) + + +if __name__ == "__main__": +    main()