import numpy as np n = int(input()) A = list(map(int,input().split(' '))) field = np.zeros((max(A),n)) for i in range(len(field)): field[i,:A[i]] = 1 print(' '.join(list(map(str,sum(field)))))