const solve = xs => {
    const m = xs.reduce((acc, x) => x > acc ? x : acc);

    let cs = Array(m);
    for (let i = 0; i <= m; i++) { cs[i] = 0 };

    let rs = [];

    xs.forEach( x => cs[x] = cs[x] + 1 );

    for (let i = 0; i <= m; i++) {
        if (cs[i] !== undefined) {
            let c = cs[i]
            while (c !== 0) {
                rs.push(i);
                c = c - 1;
            }
        }
    }

    return rs;

}


const main = () => {
    args = require('fs').
           readFileSync('/dev/stdin', 'UTF-8').
           split("\n").
           map(line =>
                line.split(' ').map(x => parseInt(x))
              );
    args.pop();

    const xs = solve(args[1].concat());

    console.log(xs.join(' '));
};

main();
