def main():

    n = int(eval(input()))

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

    dic = dict()



    for i in range(n - 1):

        if a_lst[i] in dic:

            dic[a_lst[i]] += 1

        else:

            dic[a_lst[i]] = 1



    dic_keys = list(dic.keys())

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

        if i in dic_keys:

            print((dic[i]))

        else:

            print((0))





if __name__ == "__main__":

    main()

def main():

    n = int(eval(input()))

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

    lst = [0 for _ in range(2 * 10 ** 5 + 1)]



    for a in a_lst:

        lst[a] += 1



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

        print((lst[i]))





if __name__ == "__main__":

    main()

def main():
    n = int(eval(input()))
    a_lst = list(map(int, input().split()))
    dic = dict()
    for i in range(n - 1):
        if a_lst[i] in dic:
            dic[a_lst[i]] += 1
        else:
            dic[a_lst[i]] = 1
    dic_keys = list(dic.keys())
    for i in range(1, n + 1):
        if i in dic_keys:
            print((dic[i]))
        else:
            print((0))


if __name__ == "__main__":
    main()

def main():
    n = int(eval(input()))
    a_lst = list(map(int, input().split()))
    lst = [0 for _ in range(2 * 10**5 + 1)]
    for a in a_lst:
        lst[a] += 1
    for i in range(1, n + 1):
        print((lst[i]))


if __name__ == "__main__":
    main()

-    dic = dict() -    for i in range(n - 1): -        if a_lst[i] in dic: -            dic[a_lst[i]] += 1 -        else: -            dic[a_lst[i]] = 1 -    dic_keys = list(dic.keys()) +    lst = [0 for _ in range(2 * 10**5 + 1)] +    for a in a_lst: +        lst[a] += 1 -        if i in dic_keys: -            print((dic[i])) -        else: -            print((0)) +        print((lst[i]))