# C - management

from collections import Counter





def main():

    N, *A = list(map(int, open(0).read().split()))

    cnt_subordinates = Counter(A)

    ans = [cnt_subordinates[i] for i in range(1, N + 1)]

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





if __name__ == "__main__":

    main()

# C - management

def main():

    N, *A = list(map(int, open(0).read().split()))

    cnt_subordinates = [0] * (N + 1)

    for a in A:

        cnt_subordinates[a] += 1

    print(("\n".join(map(str, cnt_subordinates[1:]))))





if __name__ == "__main__":

    main()

# C - management
from collections import Counter


def main():
    N, *A = list(map(int, open(0).read().split()))
    cnt_subordinates = Counter(A)
    ans = [cnt_subordinates[i] for i in range(1, N + 1)]
    print(("\n".join(map(str, ans))))


if __name__ == "__main__":
    main()

# C - management
def main():
    N, *A = list(map(int, open(0).read().split()))
    cnt_subordinates = [0] * (N + 1)
    for a in A:
        cnt_subordinates[a] += 1
    print(("\n".join(map(str, cnt_subordinates[1:]))))


if __name__ == "__main__":
    main()

-from collections import Counter - - -    cnt_subordinates = Counter(A) -    ans = [cnt_subordinates[i] for i in range(1, N + 1)] -    print(("\n".join(map(str, ans)))) +    cnt_subordinates = [0] * (N + 1) +    for a in A: +        cnt_subordinates[a] += 1 +    print(("\n".join(map(str, cnt_subordinates[1:]))))