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

x = [0]*n
j = 0
for i in range(n):
    k = 1
    while j < n-1:
        if i+1 == a[j]:
            j+=1
            k+=1
        else:
            break
    x[i] = k

ans = [print(_) for _ in x]