h=[ ]
h=input("请输入要排序的序列:\n").split(" ")
for j in range(0,len(h)-1):
for k in range(0,len(h)-1-j):
if h[k]>h[k+1]:
h[k],h[k+1]=h[k+1],h[k]
print(h)
h=[ ]
h=input("请输入要排序的序列:\n").split(" ")
for j in range(0,len(h)-1):
for k in range(0,len(h)-1-j):
if h[k]>h[k+1]:
h[k],h[k+1]=h[k+1],h[k]
print(h)