#include<stdio.h>
int main(){
  int k,t,i;
  char s[101];
  scanf("%d %s",&k,s);
  for(i=0;i<=k;i++){
    if(s[i]=='\0'){
      t=i;
      break;
    }
    if(i<k){printf("%c",s[i]);}
  }
  if(t-1<=k){printf("\n");}
  else{printf("...\n");}
}