#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef unsigned long long int ull;
typedef long long int ll;
typedef long double ld;

int main(void) {
  int scan; // scanf result
  int k; // to input 
  char *s; // to input 

  scan = scanf("%d", &k);
  s = (char *)malloc(sizeof(char) * 101);
  scan = scanf("%s", s);

  int slen;
  slen = strlen(s);

  char answer[103];


  if (slen <= k) {
    printf("%s", s);
  } else {
    for (int n = 0; n < k; n++) {
      answer[n] = s[n];
    }
    answer[k] = '.';
    answer[k + 1] = '.';
    answer[k + 2] = '.';
    printf("%s", answer);
  }

  return (0);
}
