import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner n = new Scanner(System.in);

		int K = n.nextInt();
		String S = n.next();

		if(S.length() <= K) {
			System.out.println(S);

		}else {
			String[] strArray = S.split("");
				for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				}
			System.out.println("...");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner n = new Scanner(System.in);

		int K = n.nextInt();
		String S = n.next();

		if(S.length() <= K) {
			System.out.println(S);

		}else {
			String[] strArray = S.split("");
				for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				}
			System.out.println("...");
		}
	}
} Main public static void main(String args[]) {
		Scanner n = new Scanner(System.in);

		int K = n.nextInt();
		String S = n.next();

		if(S.length() <= K) {
			System.out.println(S);

		}else {
			String[] strArray = S.split("");
				for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				}
			System.out.println("...");
		}
	} main {
		Scanner n = new Scanner(System.in);

		int K = n.nextInt();
		String S = n.next();

		if(S.length() <= K) {
			System.out.println(S);

		}else {
			String[] strArray = S.split("");
				for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				}
			System.out.println("...");
		}
	} Scanner n = new Scanner(System.in); n new Scanner(System.in) int K = n.nextInt(); K n.nextInt() n.nextInt n String S = n.next(); S n.next() n.next n if(S.length() <= K) {
			System.out.println(S);

		}else {
			String[] strArray = S.split("");
				for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				}
			System.out.println("...");
		} S.length() <= K S.length() S.length S K {
			System.out.println(S);

		} System.out.println(S) System.out.println System.out System System.out S {
			String[] strArray = S.split("");
				for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				}
			System.out.println("...");
		} String[] strArray = S.split(""); strArray S.split("") S.split S "" for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				} int i=0 ; int i=0 ; i 0 i<K i K i++ i++ i {
					System.out.print(strArray[i]);
				} {
					System.out.print(strArray[i]);
				} System.out.print(strArray[i]) System.out.print System.out System System.out strArray[i] strArray i System.out.println("...") System.out.println System.out System System.out "..." String args[] args public class Main {
	public static void main(String args[]) {
		Scanner n = new Scanner(System.in);

		int K = n.nextInt();
		String S = n.next();

		if(S.length() <= K) {
			System.out.println(S);

		}else {
			String[] strArray = S.split("");
				for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				}
			System.out.println("...");
		}
	}
} public class Main {
	public static void main(String args[]) {
		Scanner n = new Scanner(System.in);

		int K = n.nextInt();
		String S = n.next();

		if(S.length() <= K) {
			System.out.println(S);

		}else {
			String[] strArray = S.split("");
				for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				}
			System.out.println("...");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner n = new Scanner(System.in);

		int K = n.nextInt();
		String S = n.next();

		if(S.length() <= K) {
			System.out.println(S);

		}else {
			String[] strArray = S.split("");
				for(int i=0 ; i<K ; i++) {
					System.out.print(strArray[i]);
				}
			System.out.println("...");
		}
	}
}
