#include <bits/stdc++.h>
using namespace std;
int main(void) {
  clock_t start, end;
  start = clock();
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + n);
  int karr[100000];
  for (int i = 0; i < 100000; i++) {
    if (i % 2 == 0)
      karr[i] = 0;
    else
      karr[i] = 1;
  }
  sort(karr, karr + 100000);
  for (int j = 0; j < 1500; j++) {
    sort(karr, karr + 100000);
    arr[0]++;
    arr[0]--;
    arr[0]++;
    arr[0]--;
    arr[0]++;
    arr[0]--;
    arr[0]++;
    arr[0]--;
  }
  for (int i = 0; i < n; i++) {
    cout << arr[i] << " ";
  }
  end = clock();
  double time_taken = double(end - start) / double(CLOCKS_PER_SEC);
  return 0;
}
