import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		String ans ="";
		Scanner scan_1 = new Scanner(System.in);
		int num  = scan_1.nextInt();
		String str = scan_1.next();


		int nagasa = str.length();

		if(nagasa <= num) {
			ans = str;
		}else {
			ans = str.substring(0, num)+"...";
		}

		System.out.println(ans);
	}

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

	public static void main(String[] args) {

		String ans ="";
		Scanner scan_1 = new Scanner(System.in);
		int num  = scan_1.nextInt();
		String str = scan_1.next();


		int nagasa = str.length();

		if(nagasa <= num) {
			ans = str;
		}else {
			ans = str.substring(0, num)+"...";
		}

		System.out.println(ans);
	}

} Main public static void main(String[] args) {

		String ans ="";
		Scanner scan_1 = new Scanner(System.in);
		int num  = scan_1.nextInt();
		String str = scan_1.next();


		int nagasa = str.length();

		if(nagasa <= num) {
			ans = str;
		}else {
			ans = str.substring(0, num)+"...";
		}

		System.out.println(ans);
	} main {

		String ans ="";
		Scanner scan_1 = new Scanner(System.in);
		int num  = scan_1.nextInt();
		String str = scan_1.next();


		int nagasa = str.length();

		if(nagasa <= num) {
			ans = str;
		}else {
			ans = str.substring(0, num)+"...";
		}

		System.out.println(ans);
	} String ans =""; ans "" Scanner scan_1 = new Scanner(System.in); scan_1 new Scanner(System.in) int num  = scan_1.nextInt(); num scan_1.nextInt() scan_1.nextInt scan_1 String str = scan_1.next(); str scan_1.next() scan_1.next scan_1 int nagasa = str.length(); nagasa str.length() str.length str if(nagasa <= num) {
			ans = str;
		}else {
			ans = str.substring(0, num)+"...";
		} nagasa <= num nagasa num {
			ans = str;
		} ans = str ans str {
			ans = str.substring(0, num)+"...";
		} ans = str.substring(0, num)+"..." ans str.substring(0, num)+"..." str.substring(0, num) str.substring str 0 num "..." System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {

		String ans ="";
		Scanner scan_1 = new Scanner(System.in);
		int num  = scan_1.nextInt();
		String str = scan_1.next();


		int nagasa = str.length();

		if(nagasa <= num) {
			ans = str;
		}else {
			ans = str.substring(0, num)+"...";
		}

		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {

		String ans ="";
		Scanner scan_1 = new Scanner(System.in);
		int num  = scan_1.nextInt();
		String str = scan_1.next();


		int nagasa = str.length();

		if(nagasa <= num) {
			ans = str;
		}else {
			ans = str.substring(0, num)+"...";
		}

		System.out.println(ans);
	}

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

	public static void main(String[] args) {

		String ans ="";
		Scanner scan_1 = new Scanner(System.in);
		int num  = scan_1.nextInt();
		String str = scan_1.next();


		int nagasa = str.length();

		if(nagasa <= num) {
			ans = str;
		}else {
			ans = str.substring(0, num)+"...";
		}

		System.out.println(ans);
	}

}