import java.util.Scanner; public class yukicoder_256 { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String str = stdIn.next(); String[] array = new String[str.length()]; int[] seisu = new int[array.length]; for (int i = 0; i < array.length; i++) { array[i] = str.substring(i, i + 1); seisu[i] = Integer.parseInt(array[i]); } for (int i = 1; i <= seisu.length; i++) { for (int j = 0; j < seisu.length - 1; j++) { if (seisu[j] > seisu[j+1]) { int t; t = seisu[j]; seisu[j] = seisu[j+1]; seisu[j+1] = t; } } } for (int i = seisu.length - 1; i >= 0; i--) { System.out.print(seisu[i]); } } }