#include <iostream>
#include <fstream>
#include <algorithm>
using namespace std;
int main()
{
int N;
fstream fin, fout;
fin.open("input.txt", ios::in);
fout.open("output.txt", ios::out);
fin>>N;
int *A= new int[N];
for(int i=0;i<N;i++)
{
fin>>A[i];
}
sort(A,A+N);
for(int i=0;i<N;i++)
{
fout<<A[i]<<" ";
}
delete [] A;
fin.close();
fout.close();
return 0;
}