def main():

    n = int(eval(input()))

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

    ans = [0]*n

    for i in a:

        ans[i-1] += 1

    for i in ans:

        print(i)

    

    



if __name__ == "__main__":

    main()
def main():

    n = int(eval(input()))

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

    ans = [0]*n

    for i in a:

        ans[i-1] += 1

    print(("\n".join(list(map(str, ans)))))



if __name__ == "__main__":

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


if __name__ == "__main__":
    main()

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


if __name__ == "__main__":
    main()

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