import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int K = Integer.parseInt(sc.nextLine());
	    String S = sc.nextLine();
	    int Slength = S.length();
	    
	    if(Slength>K) {
	    	System.out.println(S.substring(0, K)+"...");
	    }else {
	    	System.out.println(S);
	    }
    }

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int K = Integer.parseInt(sc.nextLine());
	    String S = sc.nextLine();
	    int Slength = S.length();
	    
	    if(Slength>K) {
	    	System.out.println(S.substring(0, K)+"...");
	    }else {
	    	System.out.println(S);
	    }
    }

} Main public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int K = Integer.parseInt(sc.nextLine());
	    String S = sc.nextLine();
	    int Slength = S.length();
	    
	    if(Slength>K) {
	    	System.out.println(S.substring(0, K)+"...");
	    }else {
	    	System.out.println(S);
	    }
    } main {
	    Scanner sc = new Scanner(System.in);
	    int K = Integer.parseInt(sc.nextLine());
	    String S = sc.nextLine();
	    int Slength = S.length();
	    
	    if(Slength>K) {
	    	System.out.println(S.substring(0, K)+"...");
	    }else {
	    	System.out.println(S);
	    }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = Integer.parseInt(sc.nextLine()); K Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc int Slength = S.length(); Slength S.length() S.length S if(Slength>K) {
	    	System.out.println(S.substring(0, K)+"...");
	    }else {
	    	System.out.println(S);
	    } Slength>K Slength K {
	    	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 "..." {
	    	System.out.println(S);
	    } System.out.println(S) System.out.println System.out System System.out S String[] args args public class Main {

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int K = Integer.parseInt(sc.nextLine());
	    String S = sc.nextLine();
	    int Slength = S.length();
	    
	    if(Slength>K) {
	    	System.out.println(S.substring(0, K)+"...");
	    }else {
	    	System.out.println(S);
	    }
    }

} public class Main {

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int K = Integer.parseInt(sc.nextLine());
	    String S = sc.nextLine();
	    int Slength = S.length();
	    
	    if(Slength>K) {
	    	System.out.println(S.substring(0, K)+"...");
	    }else {
	    	System.out.println(S);
	    }
    }

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int K = Integer.parseInt(sc.nextLine());
	    String S = sc.nextLine();
	    int Slength = S.length();
	    
	    if(Slength>K) {
	    	System.out.println(S.substring(0, K)+"...");
	    }else {
	    	System.out.println(S);
	    }
    }

}
