#include "stdio.h"

int main() {
    int k,c=0;
    char s[100];
    scanf("%d",&k);
    scanf("%s",&s);
    for (int i=0;i<k;++i) {
        if (s[i] == '\0') {
            printf("\n");
            return 0;
        }
        printf("%c",s[i]);
    }
    printf("...\n");
    return 0;
}