import java.io.*;
import java.lang.String;
class Sequence {
public static void main(String[] args)
{
int temp;
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
String s=new String();
int str[]=null;
try{
s=reader.readLine();
}catch(Exception e){}
str=s.split(",");
//??
for(int a=0;a<str.length;a++)
for(int j=str.length-1;j>a;j--)
{
if(str[j]<str[j-1])
//Swap(str[j],str[j-1]);
{
temp=str[j];
str[j]=str[j-1];
str[j-1]=temp;
}
}

}
}