size = int(eval(input()))

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

from collections import Counter

c1 = Counter(li)

ans2 = [0] * size

for i,j in list(c1.items()):

    ans2[i-1] = j

for i in ans2:

    print(i)
from sys import stdin,stdout

size = int(stdin.readline())

li = list(map(int,stdin.readline().split()))

"""ans = [0]*size

for i in li:

    if i not in ans:

        ans[i-1] = 1

    else:

        ans[i-1] += 1

for i in ans:

    print(i)

"""

from collections import Counter

c1 = Counter(li)

ans2 = [0] * size

for i,j in list(c1.items()):

    ans2[i-1] = j

for i in ans2:

    stdout.write(str(i)+"\n")

size = int(eval(input()))
li = list(map(int, input().split()))
from collections import Counter

c1 = Counter(li)
ans2 = [0] * size
for i, j in list(c1.items()):
    ans2[i - 1] = j
for i in ans2:
    print(i)

from sys import stdin, stdout

size = int(stdin.readline())
li = list(map(int, stdin.readline().split()))
"""ans = [0]*size
for i in li:
    if i not in ans:
        ans[i-1] = 1
    else:
        ans[i-1] += 1
for i in ans:
    print(i)
"""
from collections import Counter

c1 = Counter(li)
ans2 = [0] * size
for i, j in list(c1.items()):
    ans2[i - 1] = j
for i in ans2:
    stdout.write(str(i) + "\n")

-size = int(eval(input())) -li = list(map(int, input().split())) +from sys import stdin, stdout + +size = int(stdin.readline()) +li = list(map(int, stdin.readline().split())) +"""ans = [0]*size +for i in li: +    if i not in ans: +        ans[i-1] = 1 +    else: +        ans[i-1] += 1 +for i in ans: +    print(i) +""" -    print(i) +    stdout.write(str(i) + "\n")