import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNextLine()) { char[] s = sc.nextLine().toCharArray(); List<Character> alphas = new ArrayList<>(); for (char c : s) if (Character.isLetter(c)) alphas.add(c); alphas.sort(Comparator.comparingInt(Character::toLowerCase)); int index = 0; for (int i = 0; i < s.length; i++) if (Character.isLetter(s[i])) s[i] = alphas.get(index++); System.out.println(s); } } }