解答
while 1: try: n=int(input()) l=list(map(int,input().split())) l.sort() for x in range(n-1): print(l[x],end=" ") print(l[n-1]) except: break