import java.util.Scanner;
public class Main {

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

	}

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

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

	}

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

	} main {
		Scanner scan=new Scanner(System.in);
		int K=scan.nextInt();
		String S=scan.next();
		int S_length=S.length();
		if(K<S_length) {
			for(int i=0;i<K;i++) {
				System.out.print(S.charAt(i));
			}
			System.out.print("...");
		}
		else {
			System.out.print(S);
		}

	} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int K=scan.nextInt(); K scan.nextInt() scan.nextInt scan String S=scan.next(); S scan.next() scan.next scan int S_length=S.length(); S_length S.length() S.length S if(K<S_length) {
			for(int i=0;i<K;i++) {
				System.out.print(S.charAt(i));
			}
			System.out.print("...");
		}
		else {
			System.out.print(S);
		} K<S_length K S_length {
			for(int i=0;i<K;i++) {
				System.out.print(S.charAt(i));
			}
			System.out.print("...");
		} for(int i=0;i<K;i++) {
				System.out.print(S.charAt(i));
			} int i=0; int i=0; i 0 i<K i K i++ i++ i {
				System.out.print(S.charAt(i));
			} {
				System.out.print(S.charAt(i));
			} System.out.print(S.charAt(i)) System.out.print System.out System System.out S.charAt(i) S.charAt S i System.out.print("...") System.out.print System.out System System.out "..." {
			System.out.print(S);
		} System.out.print(S) System.out.print System.out System System.out S String[] args args public class Main {

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

	}

} public class Main {

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

	}

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

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

	}

}