import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		Integer k = sc.nextInt();
		String s = sc.next();
		Integer n = s.length();
		
		if (n <= k) {
			System.out.println(s);
		} else {
			System.out.println(s.substring(0, k) + "...");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		Integer k = sc.nextInt();
		String s = sc.next();
		Integer n = s.length();
		
		if (n <= k) {
			System.out.println(s);
		} else {
			System.out.println(s.substring(0, k) + "...");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		Integer k = sc.nextInt();
		String s = sc.next();
		Integer n = s.length();
		
		if (n <= k) {
			System.out.println(s);
		} else {
			System.out.println(s.substring(0, k) + "...");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		
		Integer k = sc.nextInt();
		String s = sc.next();
		Integer n = s.length();
		
		if (n <= k) {
			System.out.println(s);
		} else {
			System.out.println(s.substring(0, k) + "...");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer k = sc.nextInt(); k sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc Integer n = s.length(); n s.length() s.length s if (n <= k) {
			System.out.println(s);
		} else {
			System.out.println(s.substring(0, k) + "...");
		} n <= k n k {
			System.out.println(s);
		} System.out.println(s) System.out.println System.out System System.out s {
			System.out.println(s.substring(0, k) + "...");
		} System.out.println(s.substring(0, k) + "...") System.out.println System.out System System.out s.substring(0, k) + "..." s.substring(0, k) s.substring s 0 k "..." String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		Integer k = sc.nextInt();
		String s = sc.next();
		Integer n = s.length();
		
		if (n <= k) {
			System.out.println(s);
		} else {
			System.out.println(s.substring(0, k) + "...");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		Integer k = sc.nextInt();
		String s = sc.next();
		Integer n = s.length();
		
		if (n <= k) {
			System.out.println(s);
		} else {
			System.out.println(s.substring(0, k) + "...");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		Integer k = sc.nextInt();
		String s = sc.next();
		Integer n = s.length();
		
		if (n <= k) {
			System.out.println(s);
		} else {
			System.out.println(s.substring(0, k) + "...");
		}
	}
}