#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100], j;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    int t = a[i];
    for (j = i - 1; j >= 0 && t < a[j]; j--) a[j + 1] = a[j];
    a[j + 1] = t;
  }
  for (int i = 0; i < n; i++) cout << a[i] << " ";
  return 0;
}
