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