var input = ""
process.stdin.resume();
process.stdin.setEncoding('utf-8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
 
process.stdin.on('end', function() {
  input = input.split("\n");
  arr = input[1].split(" ");
  arr.sort(function(a,b) { return a - b; });

  console.log(arr.join(" "));
});