# frozen_string_literal: true

bucket = Array.new(10_001, 0)
gets
gets.split(' ').each do |str|
  i = str.to_i
  bucket[i] += 1
end
sorted = []
bucket.each_with_index do |x, k|
  x.times do
    sorted << k
  end
end
puts sorted.join(' ')

