def  select_sort(buff):
	k = len(buff)
	for i in xrange(k - 1):
		min = buff[i]
		n = i
		for j in xrange(i + 1, k):
			if buff(j) < min:
				min = buff[j]
				n = j
		buff[n] = buff[j]
		buff[i] = min

N = int(raw_input())
buff = map(int, raw_input().split(' '))
select_sort(buff)