import java.util.Scanner;

public class Main {

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

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

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

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

public class Main {

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