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

}
