var n;

function CS(a,b,k){
    var c = new Array(k + 1);
    for(var i = 0;i <= k;i++)
        c[i] = 0;
    for(var j = 0;j < n;j++)
        c[a[j]]++;
    for(var i = 1;i <= k;i++)
        c[i] += c[i - 1];
    for(var j = 0;j < n;j++)
        b[-1 + c[a[j]]--] = a[j];
}

function Main(input){
    input = input.split("\n");
    n = parseInt(input[0],10);
    input[1] = input[1].split(" ");
    var a = Array(n),ans = Array(n);
    for(var i = 0;i < n;i++)
        a[i] = parseInt(input[1][i],10);
    CS(a,ans,10);
    String(ans);
    var out = ans[0];
    for(i = 1;i < n;i++)
        out += " " + ans[i];
    console.log(out);
}

Main(require("fs").readFileSync("/dev/stdin","utf8"));