import random
m=[]
d=0
for a in range(10):
m.append(random.randint(1,100000))
n = 1
while n < len(m):
for i in range(len(m)-n):
if m[i+1] > m[i]:
m[i+1],m[i] = m[i],m[i+1]
n += 1
for a in range(5):
print(m[a])
import random
m=[]
d=0
for a in range(10):
m.append(random.randint(1,100000))
n = 1
while n < len(m):
for i in range(len(m)-n):
if m[i+1] > m[i]:
m[i+1],m[i] = m[i],m[i+1]
n += 1
for a in range(5):
print(m[a])