import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
	    int K = s.nextInt();
	    String S = s.next();
	    int lenS = S.length();
	    if(lenS <= K) {System.out.println(S);}
	    else {
	    	System.out.println(S.substring(0,K)+"...");
	    	
	    }
		
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
	    int K = s.nextInt();
	    String S = s.next();
	    int lenS = S.length();
	    if(lenS <= K) {System.out.println(S);}
	    else {
	    	System.out.println(S.substring(0,K)+"...");
	    	
	    }
		
	}

} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
	    int K = s.nextInt();
	    String S = s.next();
	    int lenS = S.length();
	    if(lenS <= K) {System.out.println(S);}
	    else {
	    	System.out.println(S.substring(0,K)+"...");
	    	
	    }
		
	} main {
		Scanner s = new Scanner(System.in);
	    int K = s.nextInt();
	    String S = s.next();
	    int lenS = S.length();
	    if(lenS <= K) {System.out.println(S);}
	    else {
	    	System.out.println(S.substring(0,K)+"...");
	    	
	    }
		
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int K = s.nextInt(); K s.nextInt() s.nextInt s String S = s.next(); S s.next() s.next s int lenS = S.length(); lenS S.length() S.length S if(lenS <= K) {System.out.println(S);}
	    else {
	    	System.out.println(S.substring(0,K)+"...");
	    	
	    } lenS <= K lenS K {System.out.println(S);} System.out.println(S) System.out.println System.out System System.out S {
	    	System.out.println(S.substring(0,K)+"...");
	    	
	    } System.out.println(S.substring(0,K)+"...") System.out.println System.out System System.out S.substring(0,K)+"..." S.substring(0,K) S.substring S 0 K "..." String[] args args public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
	    int K = s.nextInt();
	    String S = s.next();
	    int lenS = S.length();
	    if(lenS <= K) {System.out.println(S);}
	    else {
	    	System.out.println(S.substring(0,K)+"...");
	    	
	    }
		
	}

} public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
	    int K = s.nextInt();
	    String S = s.next();
	    int lenS = S.length();
	    if(lenS <= K) {System.out.println(S);}
	    else {
	    	System.out.println(S.substring(0,K)+"...");
	    	
	    }
		
	}

} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
	    int K = s.nextInt();
	    String S = s.next();
	    int lenS = S.length();
	    if(lenS <= K) {System.out.println(S);}
	    else {
	    	System.out.println(S.substring(0,K)+"...");
	    	
	    }
		
	}

}
