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();
		String T = "";
		if(S.length()<=K) {
			T = S;
		}else {
			for(int i=0; i<K; i++) {
					T += S.charAt(i);
			}
			T += "...";
		}
		sc.close();
		System.out.println(T);
	}

} 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();
		String T = "";
		if(S.length()<=K) {
			T = S;
		}else {
			for(int i=0; i<K; i++) {
					T += S.charAt(i);
			}
			T += "...";
		}
		sc.close();
		System.out.println(T);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String T = "";
		if(S.length()<=K) {
			T = S;
		}else {
			for(int i=0; i<K; i++) {
					T += S.charAt(i);
			}
			T += "...";
		}
		sc.close();
		System.out.println(T);
	} main {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String T = "";
		if(S.length()<=K) {
			T = S;
		}else {
			for(int i=0; i<K; i++) {
					T += S.charAt(i);
			}
			T += "...";
		}
		sc.close();
		System.out.println(T);
	} 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 String T = ""; T "" if(S.length()<=K) {
			T = S;
		}else {
			for(int i=0; i<K; i++) {
					T += S.charAt(i);
			}
			T += "...";
		} S.length()<=K S.length() S.length S K {
			T = S;
		} T = S T S {
			for(int i=0; i<K; i++) {
					T += S.charAt(i);
			}
			T += "...";
		} for(int i=0; i<K; i++) {
					T += S.charAt(i);
			} int i=0; int i=0; i 0 i<K i K i++ i++ i {
					T += S.charAt(i);
			} {
					T += S.charAt(i);
			} T += S.charAt(i) T S.charAt(i) S.charAt S i T += "..." T "..." sc.close() sc.close sc System.out.println(T) System.out.println System.out System System.out T 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();
		String T = "";
		if(S.length()<=K) {
			T = S;
		}else {
			for(int i=0; i<K; i++) {
					T += S.charAt(i);
			}
			T += "...";
		}
		sc.close();
		System.out.println(T);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String T = "";
		if(S.length()<=K) {
			T = S;
		}else {
			for(int i=0; i<K; i++) {
					T += S.charAt(i);
			}
			T += "...";
		}
		sc.close();
		System.out.println(T);
	}

} 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();
		String T = "";
		if(S.length()<=K) {
			T = S;
		}else {
			for(int i=0; i<K; i++) {
					T += S.charAt(i);
			}
			T += "...";
		}
		sc.close();
		System.out.println(T);
	}

}