import java.util.Scanner;



public class Main {


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

			System.out.println(s);
		}

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


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

			System.out.println(s);
		}

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int i = Integer.parseInt(sc.nextLine());
		String s = sc.nextLine();
		if(i < s.length()) {
			System.out.println(s.substring(0,i) + "...");
		}else {

			System.out.println(s);
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int i = Integer.parseInt(sc.nextLine());
		String s = sc.nextLine();
		if(i < s.length()) {
			System.out.println(s.substring(0,i) + "...");
		}else {

			System.out.println(s);
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = Integer.parseInt(sc.nextLine()); i Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc if(i < s.length()) {
			System.out.println(s.substring(0,i) + "...");
		}else {

			System.out.println(s);
		} i < s.length() i s.length() s.length s {
			System.out.println(s.substring(0,i) + "...");
		} System.out.println(s.substring(0,i) + "...") System.out.println System.out System System.out s.substring(0,i) + "..." s.substring(0,i) s.substring s 0 i "..." {

			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);
		int i = Integer.parseInt(sc.nextLine());
		String s = sc.nextLine();
		if(i < s.length()) {
			System.out.println(s.substring(0,i) + "...");
		}else {

			System.out.println(s);
		}

	}
} public class Main {


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

			System.out.println(s);
		}

	}
} Main
import java.util.Scanner;



public class Main {


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

			System.out.println(s);
		}

	}
}
