fun main(args: Array<String>) {
   val list = readLine()!!.split(" ").map { it.toInt() }.toTypedArray()
   for(i in 0 until list.size - 1) {
      for(j in list.size - 1 downTo i + 1) {
        if(list[j] < list[j - 1]) {
           val temp = list[j]
           list[j] = list[j - 1]
           list[j - 1] = temp
        }
      }
    }
   println(list.joinToString(" "))
}
