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();
		int length = S.length();
		char[] s = S.toCharArray(); 
		
		if(K >= length) {
			System.out.println(S);
		}else {
			for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			}
			System.out.print("...");
		}
		
	}

} 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();
		int length = S.length();
		char[] s = S.toCharArray(); 
		
		if(K >= length) {
			System.out.println(S);
		}else {
			for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			}
			System.out.print("...");
		}
		
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int K = scan.nextInt();
		String S = scan.next();
		int length = S.length();
		char[] s = S.toCharArray(); 
		
		if(K >= length) {
			System.out.println(S);
		}else {
			for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			}
			System.out.print("...");
		}
		
	} main {
		Scanner scan = new Scanner(System.in);
		
		int K = scan.nextInt();
		String S = scan.next();
		int length = S.length();
		char[] s = S.toCharArray(); 
		
		if(K >= length) {
			System.out.println(S);
		}else {
			for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			}
			System.out.print("...");
		}
		
	} 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 int length = S.length(); length S.length() S.length S char[] s = S.toCharArray(); s S.toCharArray() S.toCharArray S if(K >= length) {
			System.out.println(S);
		}else {
			for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			}
			System.out.print("...");
		} K >= length K length {
			System.out.println(S);
		} System.out.println(S) System.out.println System.out System System.out S {
			for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			}
			System.out.print("...");
		} for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
				System.out.print(s[i]);
			} {
				System.out.print(s[i]);
			} System.out.print(s[i]) System.out.print System.out System System.out s[i] s i System.out.print("...") System.out.print System.out System System.out "..." 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();
		int length = S.length();
		char[] s = S.toCharArray(); 
		
		if(K >= length) {
			System.out.println(S);
		}else {
			for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			}
			System.out.print("...");
		}
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int K = scan.nextInt();
		String S = scan.next();
		int length = S.length();
		char[] s = S.toCharArray(); 
		
		if(K >= length) {
			System.out.println(S);
		}else {
			for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			}
			System.out.print("...");
		}
		
	}

} 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();
		int length = S.length();
		char[] s = S.toCharArray(); 
		
		if(K >= length) {
			System.out.println(S);
		}else {
			for(int i = 0; i < K; i++) {
				System.out.print(s[i]);
			}
			System.out.print("...");
		}
		
	}

}
