import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		int b = Integer.parseInt(a);
		String s = sc.nextLine();
		if(s.length()>b) {
		for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		}	
			System.out.println("...");
		}else {
			System.out.println(s);
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		int b = Integer.parseInt(a);
		String s = sc.nextLine();
		if(s.length()>b) {
		for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		}	
			System.out.println("...");
		}else {
			System.out.println(s);
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		int b = Integer.parseInt(a);
		String s = sc.nextLine();
		if(s.length()>b) {
		for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		}	
			System.out.println("...");
		}else {
			System.out.println(s);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		int b = Integer.parseInt(a);
		String s = sc.nextLine();
		if(s.length()>b) {
		for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		}	
			System.out.println("...");
		}else {
			System.out.println(s);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.nextLine(); a sc.nextLine() sc.nextLine sc int b = Integer.parseInt(a); b Integer.parseInt(a) Integer.parseInt Integer a String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc if(s.length()>b) {
		for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		}	
			System.out.println("...");
		}else {
			System.out.println(s);
		} s.length()>b s.length() s.length s b {
		for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		}	
			System.out.println("...");
		} for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		} int i = 0; int i = 0; i 0 i < b i b 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.println("...") System.out.println System.out System System.out "..." {
			System.out.println(s);
		} System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		int b = Integer.parseInt(a);
		String s = sc.nextLine();
		if(s.length()>b) {
		for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		}	
			System.out.println("...");
		}else {
			System.out.println(s);
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		int b = Integer.parseInt(a);
		String s = sc.nextLine();
		if(s.length()>b) {
		for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		}	
			System.out.println("...");
		}else {
			System.out.println(s);
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		int b = Integer.parseInt(a);
		String s = sc.nextLine();
		if(s.length()>b) {
		for (int i = 0; i < b; i++) {
		   System.out.print(s.charAt(i));
		}	
			System.out.println("...");
		}else {
			System.out.println(s);
		}
	}

}
