#include <iostream>
#include <algorithm>
using namespace std;
#define int long long
const int N = 1e6+10;
int a[N];
// STL使人快乐!
signed main(){
int n;
cin >> n;
for (int i = 0; i < n; i ++ )cin >> a[i];
sort(a,a+n);
for (int i = 0; i < n; i ++ )cout << a[i] << ' ';
return 0;
}