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

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

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

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

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

}
