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