process.stdin.resume();
process.stdin.setEncoding("utf8");
let input = "";
process.stdin.on("data", function(chunk) {input += chunk;});
process.stdin.on("end", function() {main(input.split("\n"));});
 
const C_MAX = 10001;

function main(lines){
	let n = Number(lines[0]);
	let A = lines[1].split(" ").map(Number);
	let C = [];

	for (let i = 0; i < C_MAX; i++) C[i] = 0;

	for (let i = 0; i < n; i++) {
		let a = A[i];
		C[a]++;
	}

	let p = 0;
	let B = [];
	for (let i = 0; i < C_MAX; i++) {
		let c = C[i];
		for (let j = 0; j < c; j++) {
			B[p] = i;
			p++;
		}
	}

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

