from sys import stdin



def main():



    input = stdin.readline



    N = int(eval(input()))

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

    ans = [0] * N



    for i in range(N-1):

        ans[A[i]-1] += 1



    for i in ans:

        print(i)

    



if __name__ == "__main__":

    main()
from sys import stdin



def main():



    input = stdin.readline



    N = int(eval(input()))

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

    ans = [0] * N



    for i in range(N-1):

        ans[A[i]-1] += 1



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

    

if __name__ == "__main__":

    main()
from sys import stdin


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


if __name__ == "__main__":
    main()

from sys import stdin


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


if __name__ == "__main__":
    main()

-    for i in ans: -        print(i) +    print(("\n".join(map(str, ans))))