桶排
#include<iostream>
#include <cstring>
using namespace std;
int main()
{
int b[101],k,i,n;
memset(b,0,sizeof(b));
cin>>n;
for( i=1;i<=n;i++)
{
cin>>k; b[k]++;
}
for( i=0; i<=100;i++)
while (b[i]>0) {cout<<i<<" " ;b[i]--;}
cout<<endl;
}