#include <bits/stdc++.h>
using namespace std;
int get() {
  char c;
  while (c = getchar(), c != '-' && (c < '0' || c > '9'))
    ;
  bool flag = (c == '-');
  if (flag) c = getchar();
  int x = 0;
  while (c >= '0' && c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  return flag ? -x : x;
}
int a[10];
int main() {
  int n = get();
  for (int i = 0; i < n; i++) a[i] = get();
  int sum = 0;
  for (int i = 0; i < 50000; i++)
    for (int j = 0; j < 100000; j++) sum += ((i + 1) % 34) * (j % 5);
  sort(a, a + n);
  a[0] += sum * 2;
  a[0] += 1;
  a[0] -= sum;
  a[0] -= 1;
  a[0] -= sum;
  for (int i = 0; i < n; i++) printf("%d%c", a[i], (i == n - 1) ? '\n' : ' ');
  return 0;
}
