#include <iostream>
using namespace std;
int main() {
long long int n,temp;
while(cin >> n){
int a[n];
for(int i = 0;i < n;i++){
cin >> a[i];
}
for(int i = n-1; i > 0; i--){
for(int j = 0; j <= i-1; j++){
if(a[j] > a[j+1]){
temp = a[j+1];
a[j+1] = a[j];
a[j] = temp;
}
}
}
for(int i = 0;i < n;i++){
cout << a[i] <<" ";
}
cout << endl;
}
}