#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int n;
while(cin >> n && 1<=n && n<=1000){
int arr[n];
for(int i=0;i<n;i++){
cin >> arr[i];
}
sort(arr, arr+n);
for (int j=0;j<n;j++) {
if (j == n-1) {
cout << arr[j] <<"\n";
}
else {
cout << arr[j] <<" ";
}
}
}
}