import java.util.*; public class Exercise62{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); String[] array = str.split(""); Integer[] nums = new Integer[array.length]; for (int i = 0; i < array.length; i++){ nums[i] = Integer.valueOf(array[i]); } Arrays.sort(nums, Comparator.reverseOrder()); str = ""; for (int i = 0; i < nums.length; i++){ str += nums[i]; } System.out.println(str); } }