def abc(a):
for i in range(1,len(a)):
c=a[i]
j=i-1
while j>=0 and a[j]>c:
a[j+1]=a[j]
j-=1
a[j+1]=c
a=[5,4,6,8]
abc(a)
print(a)
ZGVmIGFiYyhhKToKICAgZm9yIGkgaW4gcmFuZ2UoMSxsZW4oYSkpOgogICAgICBjPWFbaV0KICAgICAgaj1pLTEKICAgICAgd2hpbGUgaj49MCBhbmQgYVtqXT5jOgogICAgICAgICBhW2orMV09YVtqXQogICAgICAgICBqLT0xCiAgICAgIGFbaisxXT1jCmE9WzUsNCw2LDhdCmFiYyhhKQpwcmludChhKQ==