var readline = require('readline');
var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  terminal: false
});
var i = 0;
rl.on('line', function(line) {
  if (0 <= line[i] <= 10000) {
    console.log(line);
    i++;
  }else {
    console.log('????¬?????±±????????´???');
  }
}).on('colse', function() {
  while (i < line.length) {
    var j = i + 1;
    while (j < line.length) {
      if (line[i] > line[j]) {
        var x;
        x = line[i];
        line[i] = line[i + 1];
        line[i + 1] = x;
      }
      j++;
    }
    i++;
  }
  console.log(line.join(', '));
});