import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力
		int k = sc.nextInt();
		String s = sc.next();
		if(k >= s.length()) {
			System.out.println(s);
		}else{
			 String s1 = new String(s);
			String s2  = s1.substring(0,k);
			System.out.println(s2 + "...");
		}
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力
		int k = sc.nextInt();
		String s = sc.next();
		if(k >= s.length()) {
			System.out.println(s);
		}else{
			 String s1 = new String(s);
			String s2  = s1.substring(0,k);
			System.out.println(s2 + "...");
		}
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力
		int k = sc.nextInt();
		String s = sc.next();
		if(k >= s.length()) {
			System.out.println(s);
		}else{
			 String s1 = new String(s);
			String s2  = s1.substring(0,k);
			System.out.println(s2 + "...");
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		// 入力
		int k = sc.nextInt();
		String s = sc.next();
		if(k >= s.length()) {
			System.out.println(s);
		}else{
			 String s1 = new String(s);
			String s2  = s1.substring(0,k);
			System.out.println(s2 + "...");
		}
		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 if(k >= s.length()) {
			System.out.println(s);
		}else{
			 String s1 = new String(s);
			String s2  = s1.substring(0,k);
			System.out.println(s2 + "...");
		} k >= s.length() k s.length() s.length s {
			System.out.println(s);
		} System.out.println(s) System.out.println System.out System System.out s {
			 String s1 = new String(s);
			String s2  = s1.substring(0,k);
			System.out.println(s2 + "...");
		} String s1 = new String(s); s1 new String(s) String s2  = s1.substring(0,k); s2 s1.substring(0,k) s1.substring s1 0 k System.out.println(s2 + "...") System.out.println System.out System System.out s2 + "..." s2 "..." sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力
		int k = sc.nextInt();
		String s = sc.next();
		if(k >= s.length()) {
			System.out.println(s);
		}else{
			 String s1 = new String(s);
			String s2  = s1.substring(0,k);
			System.out.println(s2 + "...");
		}
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力
		int k = sc.nextInt();
		String s = sc.next();
		if(k >= s.length()) {
			System.out.println(s);
		}else{
			 String s1 = new String(s);
			String s2  = s1.substring(0,k);
			System.out.println(s2 + "...");
		}
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 入力
		int k = sc.nextInt();
		String s = sc.next();
		if(k >= s.length()) {
			System.out.println(s);
		}else{
			 String s1 = new String(s);
			String s2  = s1.substring(0,k);
			System.out.println(s2 + "...");
		}
		sc.close();
	}
}
