readInt;print(readLine.split(" ").toList.sort(_.toInt>_.toInt)mkString(" "))