#a104. 排序import sysn = [list(map(int, i.split())) for i in sys.stdin.readlines()]for i in range(len(n)): if i %2==0: continue else: ans = n[i] ans.sort() for a in ans: print(a,end=" ") print("")