def main():

    N = int(eval(input()))

    A = [int(i) for i in input().split()]

    from collections import Counter

    c = Counter(A)

    for i in range(N):

        print((c[i+1]))





if __name__ == '__main__':

    main()

def main():

    N = int(eval(input()))

    A = [int(i) for i in input().split()]

    from collections import Counter

    c = Counter(A)

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

        print((c[i]))





if __name__ == '__main__':

    main()

def main():
    N = int(eval(input()))
    A = [int(i) for i in input().split()]
    from collections import Counter

    c = Counter(A)
    for i in range(N):
        print((c[i + 1]))


if __name__ == "__main__":
    main()

def main():
    N = int(eval(input()))
    A = [int(i) for i in input().split()]
    from collections import Counter

    c = Counter(A)
    for i in range(1, N + 1):
        print((c[i]))


if __name__ == "__main__":
    main()

-    for i in range(N): -        print((c[i + 1])) +    for i in range(1, N + 1): +        print((c[i]))