import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		int s_length = s.length();
		String dots = "...";
		String ans = "";
		if (k >= s_length) {
			System.out.println(s);
		} else {
			ans = s.substring(0,k);
			ans = ans.concat(dots);
			System.out.println(ans);
		}
		sc.close();


	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		int s_length = s.length();
		String dots = "...";
		String ans = "";
		if (k >= s_length) {
			System.out.println(s);
		} else {
			ans = s.substring(0,k);
			ans = ans.concat(dots);
			System.out.println(ans);
		}
		sc.close();


	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		int s_length = s.length();
		String dots = "...";
		String ans = "";
		if (k >= s_length) {
			System.out.println(s);
		} else {
			ans = s.substring(0,k);
			ans = ans.concat(dots);
			System.out.println(ans);
		}
		sc.close();


	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		int s_length = s.length();
		String dots = "...";
		String ans = "";
		if (k >= s_length) {
			System.out.println(s);
		} else {
			ans = s.substring(0,k);
			ans = ans.concat(dots);
			System.out.println(ans);
		}
		sc.close();


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc int s_length = s.length(); s_length s.length() s.length s String dots = "..."; dots "..." String ans = ""; ans "" if (k >= s_length) {
			System.out.println(s);
		} else {
			ans = s.substring(0,k);
			ans = ans.concat(dots);
			System.out.println(ans);
		} k >= s_length k s_length {
			System.out.println(s);
		} System.out.println(s) System.out.println System.out System System.out s {
			ans = s.substring(0,k);
			ans = ans.concat(dots);
			System.out.println(ans);
		} ans = s.substring(0,k) ans s.substring(0,k) s.substring s 0 k ans = ans.concat(dots) ans ans.concat(dots) ans.concat ans dots System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		int s_length = s.length();
		String dots = "...";
		String ans = "";
		if (k >= s_length) {
			System.out.println(s);
		} else {
			ans = s.substring(0,k);
			ans = ans.concat(dots);
			System.out.println(ans);
		}
		sc.close();


	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		int s_length = s.length();
		String dots = "...";
		String ans = "";
		if (k >= s_length) {
			System.out.println(s);
		} else {
			ans = s.substring(0,k);
			ans = ans.concat(dots);
			System.out.println(ans);
		}
		sc.close();


	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		int s_length = s.length();
		String dots = "...";
		String ans = "";
		if (k >= s_length) {
			System.out.println(s);
		} else {
			ans = s.substring(0,k);
			ans = ans.concat(dots);
			System.out.println(ans);
		}
		sc.close();


	}

}