#include<stdio.h>
#include<string.h>
int main(){
  int n,i,j;
  char incard[36][3],outcardx[36][3],outcardy[36][3];
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%s",incard[i]);
    outcardx[i]=incard[i];//strncpy
    outcardy[i]=incard[i];
  }
  //bubble
  for(i=0;i<n;i++){
    for(j=0;j<n-1;j++){
      if(outcardx[j]>outcardx[j+1]){
	swap(outcardx[j],outcardx[j+1]);
      }
    }
  }
  for(i=0;i<n;i++){
    printf("%s ",outcardx[i]);
  }
  return(0);
}