import java.util.Scanner;

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

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