#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t, n;
  cin >> n;
  vector<int> a(n);
  int maxNum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    maxNum = max(a[i], maxNum);
  }
  vector<vector<bool> > board(maxNum, vector<bool>(n));
  for (int i = 0; i < n; i++) {
    for (int j = maxNum - 1; j > maxNum - 1 - a[i]; j--) {
      board[j][i] = true;
    }
  }
  for (int i = 0; i < maxNum; i++) {
    for (int j = n - 1; j >= 0; j--) {
      if (board[i][j] == false) {
        for (int k = j - 1; k >= 0; k--) {
          if (board[i][k] == true) {
            swap(board[i][j], board[i][k]);
            break;
          }
        }
      }
    }
  }
  for (int i = 0; i < n; i++) {
    int count = 0;
    for (int j = 0; j < maxNum; j++) {
      if (board[j][i]) {
        count++;
      }
    }
    cout << count << " ";
  }
  cout << endl;
  return 0;
}
