#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  int vals[100];
  cin >> num;
  int idx = 0;
  while (cin >> vals[idx++])
    ;
  int count = 0;
  for (int i = 0; i < num - 1; ++i) {
    int minIdx = i;
    for (int j = i; j < num; ++j) {
      if (vals[j] < vals[minIdx]) minIdx = j;
    }
    count += (i != minIdx);
    swap(vals[i], vals[minIdx]);
  }
  for (int i = 0; i < num - 1; ++i) cout << vals[i] << " ";
  cout << vals[num - 1] << endl;
  return 0;
}
