#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 10;
int a[N], n, m, i, j;
int main(){
cin >> n;
ios::sync_with_stdio(false);
for(int i = 1; i <= n; i ++){
cin >> a[i];
}
sort(a + 1, a + 1 + n);
for(int i = 1; i <= n; i++){
cout << a[i] << " ";
}
cout << endl;
return 0;
}