
import scala.io.StdIn

object Main extends App {
  
  val n = StdIn.readLine().trim.toInt
  val ar = StdIn.readLine().trim.split(' ').map(_.toInt)
  val result = new Array[Int](n)
  var max = ar.max


  def countingSort(): Unit = {
    val count = Array.fill(max + 1)(0)

    ar.foreach{ e =>
      count(e) += 1
    }
    
    def loop(current: Int): Unit = {
      if(current <= max){
        count(current) = count(current) + count(current - 1)
        loop(current + 1)
      } 
    }
    loop(2)
    
    (max to 0 by -1).foreach{ i =>
      result(count(ar(i))) = ar(i)
      count(ar(i)) -= 1
    }
  }
  
  countingSort()
  
  println(result.mkString(" "))

}

