import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.nextLine());
		String strings = sc.nextLine();

		if (strings.length() <= num) {
			System.out.println(strings);
		} else {
			System.out.println(strings.substring(0, num) + "...");
		}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.nextLine());
		String strings = sc.nextLine();

		if (strings.length() <= num) {
			System.out.println(strings);
		} else {
			System.out.println(strings.substring(0, num) + "...");
		}

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

		if (strings.length() <= num) {
			System.out.println(strings);
		} else {
			System.out.println(strings.substring(0, num) + "...");
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.nextLine());
		String strings = sc.nextLine();

		if (strings.length() <= num) {
			System.out.println(strings);
		} else {
			System.out.println(strings.substring(0, num) + "...");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = Integer.parseInt(sc.nextLine()); num 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() <= num) {
			System.out.println(strings);
		} else {
			System.out.println(strings.substring(0, num) + "...");
		} strings.length() <= num strings.length() strings.length strings num {
			System.out.println(strings);
		} System.out.println(strings) System.out.println System.out System System.out strings {
			System.out.println(strings.substring(0, num) + "...");
		} System.out.println(strings.substring(0, num) + "...") System.out.println System.out System System.out strings.substring(0, num) + "..." strings.substring(0, num) strings.substring strings 0 num "..." String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.nextLine());
		String strings = sc.nextLine();

		if (strings.length() <= num) {
			System.out.println(strings);
		} else {
			System.out.println(strings.substring(0, num) + "...");
		}

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.nextLine());
		String strings = sc.nextLine();

		if (strings.length() <= num) {
			System.out.println(strings);
		} else {
			System.out.println(strings.substring(0, num) + "...");
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.nextLine());
		String strings = sc.nextLine();

		if (strings.length() <= num) {
			System.out.println(strings);
		} else {
			System.out.println(strings.substring(0, num) + "...");
		}

	}
}