#include <stdio.h>
#include <string.h>

int main(void){
 int K;
 char S;
 int len;
 char m;
 char l;
  
 scanf("%d", &K);
 scanf("%c", &S);
  
 len = strlen(S);
   
 if(K >= len){
  printf("S¥n");
 }else{
  l = strncpy(m, S, 7);
  strcat(l, "...");
  printf(l);
 }
  
  return 0;
}
