import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		 Scanner sc      = new Scanner(System.in);
		 Integer maxLength =  Integer.parseInt(sc.nextLine());
		 String  stringS =  sc.nextLine();

		 if(stringS.length() > maxLength ) {
			 String output = stringS.substring(0, maxLength);
			 System.out.println(output + "...");
		 }else {
			 System.out.println(stringS);
		 }
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		 Scanner sc      = new Scanner(System.in);
		 Integer maxLength =  Integer.parseInt(sc.nextLine());
		 String  stringS =  sc.nextLine();

		 if(stringS.length() > maxLength ) {
			 String output = stringS.substring(0, maxLength);
			 System.out.println(output + "...");
		 }else {
			 System.out.println(stringS);
		 }
	}

} Main public static void main(String[] args) {
		 Scanner sc      = new Scanner(System.in);
		 Integer maxLength =  Integer.parseInt(sc.nextLine());
		 String  stringS =  sc.nextLine();

		 if(stringS.length() > maxLength ) {
			 String output = stringS.substring(0, maxLength);
			 System.out.println(output + "...");
		 }else {
			 System.out.println(stringS);
		 }
	} main {
		 Scanner sc      = new Scanner(System.in);
		 Integer maxLength =  Integer.parseInt(sc.nextLine());
		 String  stringS =  sc.nextLine();

		 if(stringS.length() > maxLength ) {
			 String output = stringS.substring(0, maxLength);
			 System.out.println(output + "...");
		 }else {
			 System.out.println(stringS);
		 }
	} Scanner sc      = new Scanner(System.in); sc new Scanner(System.in) Integer maxLength =  Integer.parseInt(sc.nextLine()); maxLength Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String  stringS =  sc.nextLine(); stringS sc.nextLine() sc.nextLine sc if(stringS.length() > maxLength ) {
			 String output = stringS.substring(0, maxLength);
			 System.out.println(output + "...");
		 }else {
			 System.out.println(stringS);
		 } stringS.length() > maxLength stringS.length() stringS.length stringS maxLength {
			 String output = stringS.substring(0, maxLength);
			 System.out.println(output + "...");
		 } String output = stringS.substring(0, maxLength); output stringS.substring(0, maxLength) stringS.substring stringS 0 maxLength System.out.println(output + "...") System.out.println System.out System System.out output + "..." output "..." {
			 System.out.println(stringS);
		 } System.out.println(stringS) System.out.println System.out System System.out stringS String[] args args public class Main {
	public static void main(String[] args) {
		 Scanner sc      = new Scanner(System.in);
		 Integer maxLength =  Integer.parseInt(sc.nextLine());
		 String  stringS =  sc.nextLine();

		 if(stringS.length() > maxLength ) {
			 String output = stringS.substring(0, maxLength);
			 System.out.println(output + "...");
		 }else {
			 System.out.println(stringS);
		 }
	}

} public class Main {
	public static void main(String[] args) {
		 Scanner sc      = new Scanner(System.in);
		 Integer maxLength =  Integer.parseInt(sc.nextLine());
		 String  stringS =  sc.nextLine();

		 if(stringS.length() > maxLength ) {
			 String output = stringS.substring(0, maxLength);
			 System.out.println(output + "...");
		 }else {
			 System.out.println(stringS);
		 }
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		 Scanner sc      = new Scanner(System.in);
		 Integer maxLength =  Integer.parseInt(sc.nextLine());
		 String  stringS =  sc.nextLine();

		 if(stringS.length() > maxLength ) {
			 String output = stringS.substring(0, maxLength);
			 System.out.println(output + "...");
		 }else {
			 System.out.println(stringS);
		 }
	}

}