def terra(num):
exit = len(num) - 1
for i in range(len(num)-1):
if num[i] < num[i + 1]:
b = num[i + 1]
num.pop(i + 1)
num.insert(i,b)
elif num[i] >= num[i + 1]:
exit = exit - 1
if exit == 0:
return num
else:
terra(num)