#include <bits/stdc++.h>
using namespace std;
vector<int> n;
int main(void) {
  int count, temp, minnum;
  cin >> count;
  for (int i = 0; i < count; i++) {
    cin >> temp;
    n.push_back(temp);
  }
  for (int i = 0; i < count - 1; i++) {
    temp = n[i];
    for (int j = i + 1; j < count; j++) {
      if (n[j] < temp) {
        minnum = j;
        temp = n[j];
      }
    }
    n[minnum] = n[i];
    n[i] = temp;
  }
  for (int i = 0; i < count - 1; i++) {
    cout << n[i] << ' ';
  }
  cout << n[count - 1] << endl;
  return 0;
}
