d=list(map(int,input().split(","))) n=len(d) __________ i=0 while i<n-1 and f==False: f=True for j in range(n-1,i,-1): if d[j]<d[j-1]: d[j],d[j-1]=d[j-1],d[j] f=False elif d[j]==d[j-1]: d[j],d[n-1]=d[n-1],d[j] __________ f=False __________ print("i=",i) for i in range(n): print(d[i],end=",")