#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int ara[n];
  int temp, j;
  int i = 0;
  while (i < n) {
    scanf("%d", &ara[i]);
    i++;
  }
  i = 0;
  while (i < (n - 1)) {
    j = 0;
    while (j < (n - 1)) {
      if (ara[j] > ara[j + 1]) {
        temp = ara[j];
        ara[j] = ara[j + 1];
        ara[j + 1] = temp;
      }
      j++;
    }
    i++;
  }
  i = 0;
  while (i < n) {
    printf("%d ", ara[i]);
    i++;
  }
  return 0;
}
