import scala.io.StdIn.readLine

object Main {
  def main(args: Array[String]) {
    readLine()
    val input = readLine().split(" ").map(_.toInt).sortWith(_ > _).mkString(" ")
    println(input)
  }
}