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