#include <bits/stdc++.h>
using namespace std;
int arr[696969];
int main() {
  int a;
  cin >> a;
  for (int x = 0; x < a; x++) {
    cin >> arr[x];
  }
  for (int X = 0; X < a - 1; X++) {
    for (int Y = X + 1; Y < a; Y++) {
      if (arr[X] > arr[Y]) swap(arr[X], arr[Y]);
    }
  }
  for (int x = 0; x < a; x++) {
    if (x == a - 1) {
      cout << arr[x] << endl;
    } else
      cout << arr[x] << " ";
  }
}
