import java.util.*;


public class Main {
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String r = sc.next();
		
		if (n >= r.length()) {
		    System.out.println(r);
		} else {
		    String result = r.substring(0, n);
		    System.out.println(result + "...");
		}
		
		
    }
}
 import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String r = sc.next();
		
		if (n >= r.length()) {
		    System.out.println(r);
		} else {
		    String result = r.substring(0, n);
		    System.out.println(result + "...");
		}
		
		
    }
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String r = sc.next();
		
		if (n >= r.length()) {
		    System.out.println(r);
		} else {
		    String result = r.substring(0, n);
		    System.out.println(result + "...");
		}
		
		
    } main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String r = sc.next();
		
		if (n >= r.length()) {
		    System.out.println(r);
		} else {
		    String result = r.substring(0, n);
		    System.out.println(result + "...");
		}
		
		
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String r = sc.next(); r sc.next() sc.next sc if (n >= r.length()) {
		    System.out.println(r);
		} else {
		    String result = r.substring(0, n);
		    System.out.println(result + "...");
		} n >= r.length() n r.length() r.length r {
		    System.out.println(r);
		} System.out.println(r) System.out.println System.out System System.out r {
		    String result = r.substring(0, n);
		    System.out.println(result + "...");
		} String result = r.substring(0, n); result r.substring(0, n) r.substring r 0 n System.out.println(result + "...") System.out.println System.out System System.out result + "..." result "..." String[] args args public class Main {
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String r = sc.next();
		
		if (n >= r.length()) {
		    System.out.println(r);
		} else {
		    String result = r.substring(0, n);
		    System.out.println(result + "...");
		}
		
		
    }
} public class Main {
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String r = sc.next();
		
		if (n >= r.length()) {
		    System.out.println(r);
		} else {
		    String result = r.substring(0, n);
		    System.out.println(result + "...");
		}
		
		
    }
} Main
import java.util.*;


public class Main {
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String r = sc.next();
		
		if (n >= r.length()) {
		    System.out.println(r);
		} else {
		    String result = r.substring(0, n);
		    System.out.println(result + "...");
		}
		
		
    }
}

