import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
 		Scanner scanner = new Scanner(System.in);
 		int K = scanner.nextInt();
 		String S = scanner.next();
 		String[] S1 = S.split("");

 		if (K >= S1.length) {
 			for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 		} else {
 			for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 			System.out.println("...");
 		}
 	}
 } import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
 		Scanner scanner = new Scanner(System.in);
 		int K = scanner.nextInt();
 		String S = scanner.next();
 		String[] S1 = S.split("");

 		if (K >= S1.length) {
 			for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 		} else {
 			for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 			System.out.println("...");
 		}
 	}
 } Main public static void main(String[] args) {
 		Scanner scanner = new Scanner(System.in);
 		int K = scanner.nextInt();
 		String S = scanner.next();
 		String[] S1 = S.split("");

 		if (K >= S1.length) {
 			for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 		} else {
 			for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 			System.out.println("...");
 		}
 	} main {
 		Scanner scanner = new Scanner(System.in);
 		int K = scanner.nextInt();
 		String S = scanner.next();
 		String[] S1 = S.split("");

 		if (K >= S1.length) {
 			for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 		} else {
 			for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 			System.out.println("...");
 		}
 	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int K = scanner.nextInt(); K scanner.nextInt() scanner.nextInt scanner String S = scanner.next(); S scanner.next() scanner.next scanner String[] S1 = S.split(""); S1 S.split("") S.split S "" if (K >= S1.length) {
 			for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 		} else {
 			for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 			System.out.println("...");
 		} K >= S1.length K S1.length S1 S1.length {
 			for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 		} for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		} int j = 0; int j = 0; j 0 j < S1.length j S1.length S1 S1.length j++ j++ j {
 	 			System.out.print(S1[j]);
 	 		} {
 	 			System.out.print(S1[j]);
 	 		} System.out.print(S1[j]) System.out.print System.out System System.out S1[j] S1 j {
 			for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 			System.out.println("...");
 		} for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		} int j = 0; int j = 0; j 0 j < K j K j++ j++ j {
 	 			System.out.print(S1[j]);
 	 		} {
 	 			System.out.print(S1[j]);
 	 		} System.out.print(S1[j]) System.out.print System.out System System.out S1[j] S1 j System.out.println("...") System.out.println System.out System System.out "..." String[] args args public class Main {
	public static void main(String[] args) {
 		Scanner scanner = new Scanner(System.in);
 		int K = scanner.nextInt();
 		String S = scanner.next();
 		String[] S1 = S.split("");

 		if (K >= S1.length) {
 			for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 		} else {
 			for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 			System.out.println("...");
 		}
 	}
 } public class Main {
	public static void main(String[] args) {
 		Scanner scanner = new Scanner(System.in);
 		int K = scanner.nextInt();
 		String S = scanner.next();
 		String[] S1 = S.split("");

 		if (K >= S1.length) {
 			for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 		} else {
 			for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 			System.out.println("...");
 		}
 	}
 } Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
 		Scanner scanner = new Scanner(System.in);
 		int K = scanner.nextInt();
 		String S = scanner.next();
 		String[] S1 = S.split("");

 		if (K >= S1.length) {
 			for (int j = 0; j < S1.length; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 		} else {
 			for (int j = 0; j < K; j++) {
 	 			System.out.print(S1[j]);
 	 		}
 			System.out.println("...");
 		}
 	}
 }