import java.util.Scanner;

/*
 * @author Tanzim Ibn Patowary
 * Created  May 13, 2020 1:21:16 PM
 */
public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		String string = in.next();
		StringBuilder mBuilder = new StringBuilder();
		if (string.length()>num) {
			mBuilder.append(string.substring(0, num)).append("...");
			System.out.println(mBuilder.toString());
		}else {
			System.out.println(string);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		String string = in.next();
		StringBuilder mBuilder = new StringBuilder();
		if (string.length()>num) {
			mBuilder.append(string.substring(0, num)).append("...");
			System.out.println(mBuilder.toString());
		}else {
			System.out.println(string);
		}
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		String string = in.next();
		StringBuilder mBuilder = new StringBuilder();
		if (string.length()>num) {
			mBuilder.append(string.substring(0, num)).append("...");
			System.out.println(mBuilder.toString());
		}else {
			System.out.println(string);
		}
	} main {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		String string = in.next();
		StringBuilder mBuilder = new StringBuilder();
		if (string.length()>num) {
			mBuilder.append(string.substring(0, num)).append("...");
			System.out.println(mBuilder.toString());
		}else {
			System.out.println(string);
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int num = in.nextInt(); num in.nextInt() in.nextInt in String string = in.next(); string in.next() in.next in StringBuilder mBuilder = new StringBuilder(); mBuilder new StringBuilder() if (string.length()>num) {
			mBuilder.append(string.substring(0, num)).append("...");
			System.out.println(mBuilder.toString());
		}else {
			System.out.println(string);
		} string.length()>num string.length() string.length string num {
			mBuilder.append(string.substring(0, num)).append("...");
			System.out.println(mBuilder.toString());
		} mBuilder.append(string.substring(0, num)).append("...") mBuilder.append(string.substring(0, num)).append mBuilder.append(string.substring(0, num)) mBuilder.append mBuilder string.substring(0, num) string.substring string 0 num "..." System.out.println(mBuilder.toString()) System.out.println System.out System System.out mBuilder.toString() mBuilder.toString mBuilder {
			System.out.println(string);
		} System.out.println(string) System.out.println System.out System System.out string String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		String string = in.next();
		StringBuilder mBuilder = new StringBuilder();
		if (string.length()>num) {
			mBuilder.append(string.substring(0, num)).append("...");
			System.out.println(mBuilder.toString());
		}else {
			System.out.println(string);
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		String string = in.next();
		StringBuilder mBuilder = new StringBuilder();
		if (string.length()>num) {
			mBuilder.append(string.substring(0, num)).append("...");
			System.out.println(mBuilder.toString());
		}else {
			System.out.println(string);
		}
	}
} Main
import java.util.Scanner;

/*
 * @author Tanzim Ibn Patowary
 * Created  May 13, 2020 1:21:16 PM
 */
public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		String string = in.next();
		StringBuilder mBuilder = new StringBuilder();
		if (string.length()>num) {
			mBuilder.append(string.substring(0, num)).append("...");
			System.out.println(mBuilder.toString());
		}else {
			System.out.println(string);
		}
	}
}
