import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); String n=koko.next(); int[] b = new int[n.length()]; int[] c = new int[n.length()]; for(int i=0; ii; j--){ if(b[j]==c[n.length()-1-i]){ int d = b[i]; b[i]=b[j]; b[j]=d; break loop1; } } } } char[] ans= new char[n.length()]; for(int i=0; i