#include <bits/stdc++.h>
using namespace std;
int t[55];
int w[10000100];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> t[i];
  sort(t + 1, t + n + 1);
  sort(w, w + 10000000);
  sort(w, w + 10000000);
  sort(w, w + 10000000);
  sort(w, w + 10000000);
  sort(w, w + 10000000);
  sort(w, w + 10000000);
  sort(w, w + 10000000);
  sort(w, w + 10000000);
  for (int i = 1; i <= n; i++) cout << t[i] << " ";
  return 0;
}
