#include int main() { int i,n,l=0; scanf("%d",&n); int a[n]; for(i=0;il) l=a[i]; } int b[l+1]={0}; for(i=0;i0) { while(b[i]!=0) //for case when number exists more than once { printf("%d ",i); b[i]--; } } } return 0; }