#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  std::array<int, 100> A;
  for (int i = 0; i < N; i++) {
    std::cin >> A[i];
  }
  for (int i = 0; i < N; i++) {
    int min_num = std::min_element(A.begin() + i, A.begin() + N) - A.begin();
    std::swap(A[i], A[min_num]);
  }
  for (int i = 0; i < N; i++) {
    std::cout << A[i];
    if (i != N - 1) {
      std::cout << " ";
    } else {
      std::cout << std::endl;
    }
  }
  return 0;
}
