import scala.io.StdIn.readLine import scala.collection.immutable.StringLike object Main { def main(args: Array[String]){ val nk = readLine().toArray.map ( x => x.toString.toInt ).toList.sortWith( _ > _ ) println(nk.mkString("")) } }