#include <bits/stdc++.h>
using namespace std;
int n, a[104];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = n - 1; i >= 0; i--) {
    for (int j = 0; j < i; j++) {
      if (a[j] > a[i]) {
        int move = a[j] - a[i];
        a[i] += move;
        a[j] -= move;
      }
    }
  }
  for (int i = 0; i < n; i++) cout << a[i] << ' ';
  return 0;
}
