#array input
from array import* 
#from numeric import*
a=[]
n=input("Enter range:")
for i in range(0,n,1):
     k=input("value:")
     a.insert(i,k)
for i in a:
     print(i)
#insertion sort
for i in range(0,n,1):
     t=a[i] 
     for j in range(i-1,-1,-1):
           if t<a[j]:
              a[j+1]=a[j]
              a[j]=t
for i in a:
     print(i) 




     

