length = int(input())
list1 = list(map(int, input().split()))
def quick_sort(left, right, list1):
if left >= right:
return
base = list1[left]
i = left
j = right
while i < j:
while i < j and list1[j] >= base:
j -= 1
while i < j and list1[i] <= base:
i += 1
if i < j:
list1[i], list1[j] = list1[j], list1[i]
list1[left], list1[i] = list1[i], list1[left]
quick_sort(left, i - 1, list1)
quick_sort(j + 1, right, list1)
quick_sort(0, length - 1, list1)
print(*list1)