object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val list = List.fill(10)(sc.nextInt) // nextInt???n????????°??????
    list.sortWith((a, b) => a > b).take(3).foreach(println)
  }
}