#include <bits/stdc++.h>
int main() {
  int K, count;
  char S[101];
  scanf("%d", &K);
  scanf("%s", &S);
  for (count = 0; S[count] |= '\0'; count++) {
  }
  if (count <= K) {
    printf("%s", S);
  } else {
    for (int i = 0; i < K; i++) {
      printf("%c", S[i]);
    }
    printf("...\n");
  }
  return 0;
}
