#include<stdio.h>
int main(void){
  
  int n,i,count = 0;
  char str[105];
  
  scanf("%d",&n);
  scanf("%s",str);
  
  while(1){
   if(str[count] == '\0') break;
    count++;
  }
  
  for(i=0;i<n;i++){
    if(i<count) printf("%c",str[i]);
  }
  
  if(count > n) printf("...");
  
  return 0;
}