import java.io.*; import java.util.*; public class Main_yukicoder490 { private static Scanner sc; private static Printer pr; private static void solve() { int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } for (int i = 1; i < 2 * n - 3; i++) { for (int p = 0; p < i; p++) { int q = i - p; if (q <= p || q >= n) { continue; } if (a[p] > a[q]) { int tmp = a[p]; a[p] = a[q]; a[q] = tmp; } } } for (int i = 0; i < n; i++) { if (i > 0) { pr.print(' '); } pr.print(a[i]); } pr.println(); } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }