#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ch[100], min, temp = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> ch[i];
  }
  for (int i = 0; i < n; i++) {
    min = i;
    for (int j = i + 1; j < n; j++) {
      if (ch[min] > ch[j]) min = j;
    }
    if (min != i) {
      temp = ch[i];
      ch[i] = ch[min];
      ch[min] = temp;
    }
  }
  for (int k = 0; k < n; k++) {
    cout << ch[k] << " ";
  }
  cout << endl;
}
