N = int(input()) A = list(map(int,input().split())) imos = [0 for _ in range(A[0] + 5)] for i in range(N): imos[1] += 1 imos[A[i]+1] -= 1 ans = [] wa = 0 for i in range(1,A[0]+1): wa += imos[i] ans.append(wa) print(*ans)