#include <bits/stdc++.h>
using namespace std;
template <typename T>
istream &operator>>(istream &in, vector<T> &a) {
  for (int i = 0; i < a.size(); ++i) in >> a[i];
  return in;
}
template <typename T>
ostream &operator<<(ostream &out, const vector<T> &a) {
  for (int i = 0; i < a.size(); ++i) out << a[i] << " ";
  return out;
}
int main() {
  ios_base::sync_with_stdio(false);
  long long n;
  cin >> n;
  vector<int> a(n);
  cin >> a;
  sort(a.begin(), a.end());
  long long idx = 1e8;
  long long sum = 0;
  vector<int> buffer;
  for (long long i = 0; i < 7 * 1e7; ++i) {
    buffer.push_back(rand() % 5);
    if (buffer.size() > 1e4) buffer.clear();
  }
  cout << a << endl;
  return 0;
}
