#include <iostream>
#include <algorithm>
#include <string>
#include <sstream>
#include <vector>
using namespace std;
int main() {
string line;
while(getline(cin, line)){
stringstream ss(line);
string word;
vector<string> words;
while(getline(ss, word, ',')){
words.push_back(word);
}
sort(words.begin(), words.end());
int n = words.size();
for(int i = 0; i < n-1; i++){
cout <<words[i] << ",";
}
cout << words[n-1] << endl;
}
}