# your code goes here #swap S=list(input()) S.sort() i=0 k=1 l=1 while i