fun main() { val m = ArrayList>() repeat(3) { m[it] = 'A' + it to readLine()!!.toInt() } m.sortedBy { it.second }.forEach { println(it.first) } }