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

int main(){
	
	char word[101] = {};
	int letters;
	int len = strlen(word);
	
	scanf  ("%d %c",&letters, &word);
	
	if (len <= letters){
		
		printf ("%c", word);
	}else{
		
		for (int i = 0; i <letters; i++){
			printf("%c", word[i]);
		}
		
		printf ("...\n");
	}
	
}