#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  int temp;
  int arr[x - 1];
  for (int c = 0; c < x; c++) cin >> arr[c];
  for (int i = 0; i < x; i++) {
    for (int c = 0; c < x; c++)
      if (arr[i] < arr[c]) {
        temp = arr[c];
        arr[c] = arr[i];
        arr[i] = temp;
      }
  }
  for (int j = 0; j < x; j++) {
    cout << arr[j] << " ";
  }
  cout << endl;
  return 0;
}
