import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//整数の入力
		int K = sc.nextInt();
		//文字列の入力
		String S = sc.next();
		//配列の定義
		char [] s = new char [K];
		//条件分岐
		if (S.length() <= K) {
			System.out.println(S);
		}else {  //文字列の切り出し
			for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			}
			System.out.println("...");
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//整数の入力
		int K = sc.nextInt();
		//文字列の入力
		String S = sc.next();
		//配列の定義
		char [] s = new char [K];
		//条件分岐
		if (S.length() <= K) {
			System.out.println(S);
		}else {  //文字列の切り出し
			for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			}
			System.out.println("...");
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//整数の入力
		int K = sc.nextInt();
		//文字列の入力
		String S = sc.next();
		//配列の定義
		char [] s = new char [K];
		//条件分岐
		if (S.length() <= K) {
			System.out.println(S);
		}else {  //文字列の切り出し
			for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			}
			System.out.println("...");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		//整数の入力
		int K = sc.nextInt();
		//文字列の入力
		String S = sc.next();
		//配列の定義
		char [] s = new char [K];
		//条件分岐
		if (S.length() <= K) {
			System.out.println(S);
		}else {  //文字列の切り出し
			for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			}
			System.out.println("...");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc String S = sc.next(); S sc.next() sc.next sc char [] s = new char [K]; s new char [K] K if (S.length() <= K) {
			System.out.println(S);
		}else {  //文字列の切り出し
			for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			}
			System.out.println("...");
		} S.length() <= K S.length() S.length S K {
			System.out.println(S);
		} System.out.println(S) System.out.println System.out System System.out S {  //文字列の切り出し
			for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			}
			System.out.println("...");
		} for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			} {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			} s[i] = S.charAt(i) s[i] s i S.charAt(i) S.charAt S i System.out.print(s[i]) System.out.print System.out System System.out s[i] s i System.out.println("...") System.out.println System.out System System.out "..." String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//整数の入力
		int K = sc.nextInt();
		//文字列の入力
		String S = sc.next();
		//配列の定義
		char [] s = new char [K];
		//条件分岐
		if (S.length() <= K) {
			System.out.println(S);
		}else {  //文字列の切り出し
			for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			}
			System.out.println("...");
		}
	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//整数の入力
		int K = sc.nextInt();
		//文字列の入力
		String S = sc.next();
		//配列の定義
		char [] s = new char [K];
		//条件分岐
		if (S.length() <= K) {
			System.out.println(S);
		}else {  //文字列の切り出し
			for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			}
			System.out.println("...");
		}
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//整数の入力
		int K = sc.nextInt();
		//文字列の入力
		String S = sc.next();
		//配列の定義
		char [] s = new char [K];
		//条件分岐
		if (S.length() <= K) {
			System.out.println(S);
		}else {  //文字列の切り出し
			for(int i = 0; i < K; i++) {
				s[i] = S.charAt(i);
				System.out.print(s[i]);
			}
			System.out.println("...");
		}
	}

}
