var fs = require('fs'),
    length = fs.fstatSync(process.stdin.fd).size,
    buffer = new Buffer(length),
    bytesRead = fs.readSync(process.stdin.fd, buffer, 0, length, 0),
    input = buffer.toString('utf8', 0, bytesRead).split('\n');
main();
function main(){
// do something
var num = input[0];
var sortednum = input[1];
for(var i=0;i<sortednum.length;i++){
if(sortednum[i]<sortednum[i+1]){
var tmp=sortednum[i];
sortednum[i]=sortednum[i+1];
sortednum[i+1]=tmp;
}
console.log(sortednum);
}

}