#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <vector>
#include <queue>
#include <map>
#include <sstream>
#include <algorithm>
#include <cstdlib>
using namespace std;
int main(){
string str;
while (getline(cin, str)){
stringstream ss;
ss << str;
string s; // 接受字符串
vector<string> sortstring;
while (getline(ss,s,',')){ // 这里实现了用逗号分隔
sortstring.push_back(s);
}
sort(sortstring.begin(), sortstring.end());
for (int i = 0; i < sortstring.size()-1; ++i)
cout << sortstring[i] << ",";
cout << sortstring[sortstring.size()-1] << endl;
}
return 0;
}