参考的原来链接https://blog.csdn.net/weixin_42194402/article/details/103121223
自己根据输入输出格式添加的
while True:
try:
n=int(input())
if n>=1 and n<=200:
data=list(map(int,input().split()))
data.sort()
for i in range(0,n):
if abs(data[i])<10000:
print(data[i],end=" ")
except:
break