#include <bits/stdc++.h>
using namespace std;
void sort (int num[], int n){
int b;
for (int m = 1; m <= n; m++){
for (int i = 1; i <= n - 1; i++){
if (num[i] > num[i + 1]){
b = num[i];
num[i] = num[i + 1];
num[i + 1] = b;
}
}
}
}
int main(){
int num[1001], n = 0;
while (cin >> n){
for (int i = 1; i <= n; i++){
cin >> num[i];
}
sort(num, n);
for (int i = 1; i <= n; i++){
cout << num[i] << " ";
}
cout << endl;
}
}