/*
#include <stdio.h>
#include <stdlib.h>
struct student
{
int age;
char grade;
double score;
};
int main()
{
struct student st[100];
scanf("%d",&st[i].age);
return 0;
}
*/
/*
#include <stdio.h>
struct student
{
char name[11];
int score1,score2,score3;
};
int main ()
{
int n,i,mi=1,a=1,b=1;
struct student st[101];
scanf ("%d",&n);
for (i=1; i<=n; i++)
{
scanf ("%s %d %d %d",st[i].name,&st[i].score1,
&st[i].score2,&st[i].score3);
if (st[i].score1>st[mi].score1)
{
mi=i;
}
}
for(i=1;i<=n;i++)
{
if (st[mi].score2<st[i].score2)
{
a++;
}
if (st[mi].score3<st[i].score3)
{
b++;
}
}
printf ("%s %d %d",st[mi].name,a,b);
}
*/
/*
#include <stdio.h>
struct student
{
int score,rank;
};
int main ()
{
int n,j,i;
struct student st[201];
scanf ("%d",&n);
for (i=1;i<=n;i++)
{
scanf ("%d",&st[i].score);
st[i].rank=1;
}
for (i=1;i<=n;i++)
{
for (j=1;j<=n;j++)
{
if (st[i].score<st[j].score)
{
st[i].rank++;
}
}
printf ("%d %d\n",st[i].score,st[i].rank);
}
return 0;
}
*/
/*
#include <stdio.h>
struct student
{
char name[11];
int grade;
};
int main ()
{
struct student st[101];
int n,m,i,j,mi=1;
scanf ("%d %d",&n,&m);
for (i=1;i<=n;i++)
{
scanf ("%s %d",st[i].name,&st[i].grade);
}
for (i=1;i<=m;i++)
{
for (j=1;j<=n;j++)
{
if (st[mi].grade<st[j].grade)
{
mi=j;
}
}
printf ("%s\n",st[mi].name);
st[mi].grade=0;
mi=1;
}
return 0;
}
*/
#include <stdio.h>
int a[10001];
int n, i, j, temp, min;
int main() {
scanf("%d", &n);
for (i = 1; i <= n; i++)
{
scanf("%d", &a[i]);
}
for (i=1; i<n; i++)
{
min=i;
for (j=i+1; j<=n; j++)
{
if (a[j]<a[min])
{
a[i]=min
}
}
temp = a[i];
a[i] = a[min];
a[min] = temp;
}
for (i=1; i<=n; i++)
printf("%d\n", a[i]);
return 0;
}