def abc(a):
L=len(a)
for i in range(L-1):
m=i
for j in range(L+1,i):
if a[j]<a[m]:
a[i],a[m]=a[m],a[i]
a=[64,34,25,12,22,11,90]
abc(a)
print(a)
ZGVmIGFiYyhhKToKICAgIEw9bGVuKGEpCiAgICBmb3IgaSBpbiByYW5nZShMLTEpOgogICAgICAgIG09aQogICAgICAgIGZvciBqIGluIHJhbmdlKEwrMSxpKToKICAgICAgICAgICBpZiBhW2pdPGFbbV06CiAgICAgICAgICAgICBhW2ldLGFbbV09YVttXSxhW2ldCmE9WzY0LDM0LDI1LDEyLDIyLDExLDkwXQphYmMoYSkKcHJpbnQoYSk=