#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long N, A[100];
  cin >> N;
  for (long long i = 0; i < N; i++) {
    cin >> A[i];
  }
  for (long long i = 0; i < N; i++) {
    long long minj = i;
    for (long long j = i; j < N; j++) {
      if (A[j] < A[minj]) {
        minj = j;
      }
    }
    long long tmp = A[i];
    A[i] = A[minj];
    A[minj] = tmp;
  }
  for (long long i = 0; i < N - 1; i++) {
    cout << A[i] << " ";
  }
  cout << A[N - 1] << endl;
}
