#include<iostream> #include<cstdio> #include<algorithm> using namespace std; int array[100]; int main() { int n; while(scanf("%d\n",&n)!=EOF){ for(int i=0;i<n;++i){ scanf("%d",&array[i]); } sort(array,array+n); for(int i=0;i<n;++i){ cout<<array[i]<<" "; } cout<<endl; } return 0; }