def young_diagram(A): B = [0]*A[0] for i in range(len(A)): for j in range(A[i]): B[j] += 1 return B N = int(input()) A = list(map(int, input().split())) print(*young_diagram(A))