import java.util.Scanner;
//java字符与ASCII码相互转换
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
while(in.hasNext()){
int[] sort = new int[128];//根据ASCII码表从0~127有对应字符符号。设置128。
String str = in.nextLine();
for(int i = 0; i < str.length(); i++){
int s = str.charAt(i);
//统计出现次数(java字符对应的ASCII值作为数组下标。出现次数作为数组这个位置的值。)
sort[s]++;
}
//(ASCII码值从小到大)排列输出。
for(int i = 48; i < sort.length; i++){//从'0'开始输出,对应ASCII码值48
if(sort[i]!= 0){
for(int j = 0; j < sort[i]; j++){//把ASCII值转换成字符。输出。
System.out.print((char)i);
}
}
}
}
}
}
ASCII码对照表 https://tool.oschina.net/commons?type=4

京公网安备 11010502036488号