import java.util.Scanner;
public class Main {

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

} import java.util.Scanner; Scanner java.util public class Main {

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

} Main public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int K	 = scn.nextInt();
		String S = scn.next();
		scn.close();
		if (S.length() <= K) {
			System.out.println(S);
		}else {
			String ans = S.substring(0,K);
			System.out.println(ans+"...");
		}
	} main {
		Scanner scn = new Scanner(System.in);
		int K	 = scn.nextInt();
		String S = scn.next();
		scn.close();
		if (S.length() <= K) {
			System.out.println(S);
		}else {
			String ans = S.substring(0,K);
			System.out.println(ans+"...");
		}
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int K	 = scn.nextInt(); K scn.nextInt() scn.nextInt scn String S = scn.next(); S scn.next() scn.next scn scn.close() scn.close scn if (S.length() <= K) {
			System.out.println(S);
		}else {
			String ans = S.substring(0,K);
			System.out.println(ans+"...");
		} 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 ans = S.substring(0,K);
			System.out.println(ans+"...");
		} String ans = S.substring(0,K); ans S.substring(0,K) S.substring S 0 K System.out.println(ans+"...") System.out.println System.out System System.out ans+"..." ans "..." String[] args args public class Main {

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

} public class Main {

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

} Main
import java.util.Scanner;
public class Main {

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

}
