#int(input()) #map(int, input().split()) #list(map(int, input().split())) N = int(input()) A = list(map(int, input().split())) b = A[0] ans = [0] * b for i in range(N): ans[A[i]-1] += 1 # print(ans) for i in range(b-1): ans[b-2-i] += ans[b-1-i] print(" ".join([str(_) for _ in ans]))