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

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

}