#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
int col[107], row[107];
int main() {
  int n, m;
  cin >> n;
  m = n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    m = max(m, a);
    while (a--) row[a + 1]++;
  }
  for (int i = 1; i <= m; i++)
    while (row[i]--) col[n - row[i]]++;
  for (int i = 1; i <= n; i++) cout << col[i] << " ";
  return 0;
}
