#include<iostream>
#include<algorithm>
#include<cstdio>
using namespace std;
long long a[2000005],i,n;
int main()
{
while (scanf("%lld",&n)!=EOF)
{
if (n==0)
{
break;
}
for (i=0; i<n; i++)
{
scanf("%lld",&a[i]);
}
sort(a, a+n);
for (i=0; i<n; i++)
{
printf("%lld", a[i]);
if(i<(n-1))
{
printf(" ");
}
}
printf("\n");
}
return 0;
}
No comments:
Post a Comment