import java.util.Scanner;

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

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