def sort(array)
  for i in 1..(array.size - 1)
    x = array[i]
    j = i
    while(j > 0 && array[j-1] >= x)
      array[j] = array[j-1]
      j -= 1
    end
    array[j] = x
  end
  array.join(" ")
end

#input
n = gets.chomp
n = gets.chomp
n = n.split().map(&:to_i)

#output
p sort(n)