#include<stdio.h>


int main() {

	int k;
	int i = 0;
	char s[256];
	scanf("%d", &k);
	scanf("%s",s);
	
	while (s[i] != '\0' ) {
		  printf("%c", s[i]);
		  i++;
		  if (k == i)
		  {
			  if (s[i] != '\0') {
				  printf("...");
			  }
			  break;
		  }
		 
	}
	printf("\n");


	return 0;
}
