def counting_sort(a, b, k)
	c = Array.new(k+1,0)

	a.each { |j|
		c[j] += 1
	}
	
	for i in 1..k
		c[i] = c[i] + c[i-1]
	end
	
	(0..$n-1).reverse_each { |j|
		aj = a[j]
		caj=c[aj]-1
		b[caj] = a[j]
		c[aj] -= 1
	}
end

$n = gets.to_i
a = gets.split(" ").map(&:to_i)

b = Array.new
counting_sort(a, b, a.max)

puts b.join(" ")