fun main(args: Array<String>) {
  val list:MutableList<Int> = ArrayList<Int>()

  for(i in 1..10) {
    val x = readLine()
    list += Integer.parseInt(x)
  }
  list.sortedDescending().take(3).forEach { println(it) }
}
