import java.util.*;

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

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