object Main {
  def main(args: Array[String]) {
    val s = io.StdIn.readLine().split(" ")
    val a = s map (i => Integer.parseInt(i))
    val b = a.sorted
    println("%d %d %d".format(b(0), b(1), b(2)))
  }
}