import algorithm, sequtils, strutils let n = parseInt readLine stdin xs = n.newSeqWith stdin.readLine.split.map parseInt for kl in xs: let l = kl[1..^1] echo l.sortedByIt(-it).join " "