#include <bits/stdc++.h>
int main() {
  int array[1001], n, c, d, e, swap;
  scanf("%d", &n);
  for (c = 0; c < n; c++) scanf("%d", &array[c]);
  for (c = 0; c < (n - 1); c++) {
    for (d = 0; d < n - c - 1; d++) {
      if (array[d] > array[d + 1]) {
        swap = array[d];
        array[d] = array[d + 1];
        array[d + 1] = swap;
      }
    }
  }
  for (e = 0; e < 100006; e++) printf("");
  for (e = 0; e < 100006; e++) printf("");
  for (e = 0; e < 100006; e++) printf("");
  for (e = 0; e < 100006; e++) printf("");
  for (e = 0; e < 100006; e++) printf("");
  printf("%d", array[0]);
  for (c = 1; c < n; c++) printf(" %d", array[c]);
  return 0;
}
