#include <bits/stdc++.h>
using namespace std;
void cut(string);
vector<int> v;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int n;
string s;
while(cin>>n){
v.clear();
cin.ignore();
getline(cin,s);
cut(s);
sort(v.begin(),v.end(),less<int>());
for(int i=0;i<v.size();i++){
cout<<v[i]<<" ";
}
cout<<"\n";
}
return 0;
}
void cut(string s){
stringstream ss;
ss<<s;
while(getline(ss,s,' ')){
v.push_back(atoi(s.c_str()));
}
}
打給同學看,整個優越感就上來了(ps.對大神無效,只能唬唬新手)