import java.io.*;
import java.math.*;
import java.util.*;
public class Main{ //Perform BFS from 2...N then use those values to print

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		String S = input.next();
		if (S.length()<=x) System.out.println(S);
		else System.out.println(S.substring(0,x)+"...");
	}	
} import java.io.*; io.* java import java.math.*; math.* java import java.util.*; util.* java public class Main{ //Perform BFS from 2...N then use those values to print

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		String S = input.next();
		if (S.length()<=x) System.out.println(S);
		else System.out.println(S.substring(0,x)+"...");
	}	
} Main public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		String S = input.next();
		if (S.length()<=x) System.out.println(S);
		else System.out.println(S.substring(0,x)+"...");
	} main {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		String S = input.next();
		if (S.length()<=x) System.out.println(S);
		else System.out.println(S.substring(0,x)+"...");
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int x = input.nextInt(); x input.nextInt() input.nextInt input String S = input.next(); S input.next() input.next input if (S.length()<=x) System.out.println(S);
		else System.out.println(S.substring(0,x)+"..."); S.length()<=x S.length() S.length S x System.out.println(S) System.out.println System.out System System.out S System.out.println(S.substring(0,x)+"...") System.out.println System.out System System.out S.substring(0,x)+"..." S.substring(0,x) S.substring S 0 x "..." String[] args args public class Main{ //Perform BFS from 2...N then use those values to print

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		String S = input.next();
		if (S.length()<=x) System.out.println(S);
		else System.out.println(S.substring(0,x)+"...");
	}	
} public class Main{ //Perform BFS from 2...N then use those values to print

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		String S = input.next();
		if (S.length()<=x) System.out.println(S);
		else System.out.println(S.substring(0,x)+"...");
	}	
} Main
import java.io.*;
import java.math.*;
import java.util.*;
public class Main{ //Perform BFS from 2...N then use those values to print

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		String S = input.next();
		if (S.length()<=x) System.out.println(S);
		else System.out.println(S.substring(0,x)+"...");
	}	
}