# coding: utf-8
# ALDS1_6_A: ?¨???°?????????
VMAX = 10_000

def countingSort a, b
  c = Array.new(VMAX+1) { 0 }
  a.each {|e|
    c[e] += 1
  }
  j = 0
  c.each_with_index {|e, i|
    e.times {
      b[j] = i
      j += 1
    }
  }
end

n = gets.to_i
a = gets.split.map(&:to_i)
b = Array.new(n)
countingSort a, b
puts b.join(' ')