// Sort.cpp : Defines the entry point for the console application.
//
//用STL实现的排序
#include "stdafx.h"
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
int n;
while(cin>>n && n>=1&&n<=100)
{
vector<int> ivec;
int itemp;
for(int i=0; i<n; i++)
{
cin>>itemp;
ivec.push_back(itemp);
}
sort(ivec.begin(),ivec.end());
for(vector<int>::iterator j=ivec.begin(); j!=ivec.end(); ++j)
{
cout<<*j<<' ';
}
cout<<endl;
}
return 0;
}