#include <bits/stdc++.h>
using namespace std;
int main() {
  int columns, temp, swap;
  cin >> columns;
  int* list = new int[columns];
  for (int i = 0; i < columns; i++) {
    cin >> list[i];
  }
  for (int i = 0; i < columns - 1; i++) {
    temp = i;
    for (int j = i + 1; j < columns; j++) {
      if (list[temp] > list[j]) {
        temp = j;
      }
    }
    if (temp != i) {
      swap = list[i];
      list[i] = list[temp];
      list[temp] = swap;
    }
  }
  for (int i = 0; i < columns; i++) {
    cout << list[i] << " ";
  }
  cout << endl;
  return 0;
}
