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

int main()
{
	int ret;
	int k;
	char s[101];
	char sbuf[200];
	char *pbuf;
	memset(s,0,sizeof(s));
	memset(sbuf, 0, sizeof(sbuf));
	int n;
	ret = scanf("%d", &k);
	ret = scanf(" %s", s);

	n = strlen(s);
	if (n <= k)
		printf("%s\n",s);
	else {
		pbuf = strncpy(sbuf, s, k);
		pbuf = strcat(pbuf, "...");
		printf("%s\n",pbuf);
	}
	fflush(stdout);
	return EXIT_SUCCESS;
}
