function main(input) {
    input = input.split("\n");
    var N = parseInt(input[0]);
    var values = input[1].split(" ").map(function (v) { return parseInt(v); });
    sort(values);
}

function sort(max) {
    for (var i = 0; i < max; i++) {
        var v = values[i];
        var j = i - 1;
        while (j >= 0 && values[j] > v) {
            values[j + 1] = values[j];
            j--;
        }
        values[j + 1] = v;
    }
}


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