fun main(args: Array<String>) {

    val n = 10
    val list = List(n) {
        readLine()!!.toInt()
    }

    var cnt = 0
    for(i in list.sortedDescending()){
        cnt +=1
        if (cnt > 3)
            break
        println(i)
    }
}
