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

int main(){
	int number;
	char random[100];
	scanf("%d\n %s", &number, &random);
	int len = strlen(random);
	
	if(len <= number) {
		printf(random);
	}
	else {
		for (int x = 0; x<number; x++){
			printf("%c",random[x]);
		}
		puts("...");
	}

    return 0;
}