fun main() { val n = readLine()!!.toInt() repeat(n){ println(readLine()!!.split(" ").drop(1).map{it.toInt()}.sorted().reversed().joinToString(separator = " ")) } }