def xyz(a):
n=len(a)
for i in range(n-1):
for j in range(0,n-i-1):
if a[j]>a[j+1]:
a[j],a[j+1]=a[j+1],a[j]
n=[64,34,25,12,22,11,90]
xyz(n)
print("sorted array")
print(n)
ZGVmIHh5eihhKToKICAgIG49bGVuKGEpCiAgICBmb3IgaSBpbiByYW5nZShuLTEpOgogICAgICAgZm9yIGogaW4gcmFuZ2UoMCxuLWktMSk6CiAgICAgICAgICBpZiBhW2pdPmFbaisxXToKICAgICAgICAgICAgICBhW2pdLGFbaisxXT1hW2orMV0sYVtqXQpuPVs2NCwzNCwyNSwxMiwyMiwxMSw5MF0KeHl6KG4pCnByaW50KCJzb3J0ZWQgYXJyYXkiKQpwcmludChuKQ==