import collections

n = int(eval(input()))

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



a.sort()

a = collections.deque(a)

counter = 0

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

    while len(a) != 0:

        if i != a[0]: 

            break

        counter += 1

        a.popleft()    

    print(counter)

    counter = 0

    

n = int(eval(input()))

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



ans = [0]*n

counter = 0

for i in range(n-1):

    ans[a[i]-1] += 1



for i in range(n):

    print((ans[i]))

    



import collections

n = int(eval(input()))
a = list(map(int, input().split()))
a.sort()
a = collections.deque(a)
counter = 0
for i in range(1, n + 1):
    while len(a) != 0:
        if i != a[0]:
            break
        counter += 1
        a.popleft()
    print(counter)
    counter = 0

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

-import collections - -a.sort() -a = collections.deque(a) +ans = [0] * n -for i in range(1, n + 1): -    while len(a) != 0: -        if i != a[0]: -            break -        counter += 1 -        a.popleft() -    print(counter) -    counter = 0 +for i in range(n - 1): +    ans[a[i] - 1] += 1 +for i in range(n): +    print((ans[i]))