import strutils, sequtils, algorithm let n = stdin.readLine.parseInt for _ in 1 .. n: echo stdin.readLine.split.map(parseInt)[1..^1].sorted(Descending).join(" ")