#include <stdio.h>

int main(){
  
  int i,j,k,max,n,*A,*B,*C;
  

  A = (int *)malloc( sizeof(int) * 2000000);
  B= (int *)malloc( sizeof(int) * 2000000);
  C = (int *)malloc( sizeof(int) * 2000000);

  
  max=A[0];
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&A[i]);

    if(max<A[i]){max=A[i]; 
      k=max;
    }


  }
  
  
  for(i=0;i<k;i++){
    
    C[i]=0;
  }
  
  for(j=1;i<n;i++){
    C[A[j]]++;

  }
  
  for(j=n;j>1;n--){
    B[C[A[j]]] = A[j];
    C[A[j]]--;

  }


  for(j=0;j<n;j++){
    printf("%d", B[C[A[j]]]);
      }


  free(A);
  free(B);
  free(C);
  
  return 0;
}