#include <fstream>
ifstream in("data.in");
ofstream out("data.out");
using namespace std;
int x[1001],i=1,j,n,ajutor;
void Citire()
{
in >> n;
for(i=1;i<=n;i++)
{
in >> x[i];
}
}
void Bule()
{
for(i=1;i<=n;i++)
{
for(j=i+1;j<=n;j++)
{
if(a[i]>a[j])
{
x[i]=ajutor;
x[j]=ajutor;
x[i]=x[j];
}
}
for(i=1;i<=n;i++){out << x[i] << " ";}
}
int main()
{
Citire();
Bule();
return 0;
}