#include <bits/stdc++.h>
using namespace std;
void swapData(int *a, int *b) {
  int temp = *a;
  *a = *b;
  *b = temp;
}
void selectionSort(int x[], int n) {
  for (int i = 0; i < n; i++) {
    int small = i;
    for (int j = i + 1; j < n; j++) {
      if (x[j] < x[small]) small = j;
    }
    swapData(&x[small], &x[i]);
  }
}
int main() {
  int n;
  cin >> n;
  int x[n];
  for (int i = 0; i < n; i++) {
    cin >> x[i];
  }
  selectionSort(x, n);
  for (int i = 0; i < n; i++) {
    cout << x[i] << " ";
  }
}
