n = int(input())
x = map(int, input().split())
a_list = list(x)

# r_list = []
# for i in range(n+1):
#     r_list.append(a_list.count(i))

# n = 5
# a_list = [1,1,2,2]

r_list = map(a_list.count, range(n+1))
r_list = list(r_list)
r_list2 = map(str, r_list[1:])
r_list2 = list(r_list2)

ans = "\n".join(r_list2)

print(ans)