a=list(map(int,input().split(","))) n=len(a) k=0 for i in range(n): if a[i]<a[k]: k=i lstart=(k-1) % n rstart=(k+1) % n i=1 while i<=(n-1)//2: left=lstart for j in range(__________): p=(left-1) % n if a[left]>a[p]: a[left],a[p]=a[p],a[left] left=p rstart=(rstart+1) % n right=rstart while __________: p=(right+1) % n if a[right]<a[p]: a[right],a[p]=a[p],a[right] right=p lstart=__________ i+=1 print(a)