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