#include <bits/stdc++.h>
using namespace std;
const int N = 100000 + 10;
void solve() {
  vector<int> vec;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    vec.push_back(x);
  }
  sort(vec.begin(), vec.end());
  int ans = 0;
  for (int i = 0; i < 50000; ++i) {
    for (int j = 0; j < 50000; ++j) {
      ans += i + j;
    }
  }
  vec.push_back(ans);
  for (int i = 0; i + 1 < vec.size(); ++i) {
    cout << vec[i] << ' ';
  }
  cout << endl;
}
int main() {
  solve();
  return 0;
}
