import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		//入力表示
		int K = scanner.nextInt();
		String S = scanner.next();
		int num = S.length();
		
		String x ="";
		
		if (num <= K) {
			
			System.out.println(S);
			
		} else {
			System.out.println(S.substring(0, K) + "...");
		}

	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		//入力表示
		int K = scanner.nextInt();
		String S = scanner.next();
		int num = S.length();
		
		String x ="";
		
		if (num <= K) {
			
			System.out.println(S);
			
		} else {
			System.out.println(S.substring(0, K) + "...");
		}

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		//入力表示
		int K = scanner.nextInt();
		String S = scanner.next();
		int num = S.length();
		
		String x ="";
		
		if (num <= K) {
			
			System.out.println(S);
			
		} else {
			System.out.println(S.substring(0, K) + "...");
		}

	} main {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		//入力表示
		int K = scanner.nextInt();
		String S = scanner.next();
		int num = S.length();
		
		String x ="";
		
		if (num <= K) {
			
			System.out.println(S);
			
		} else {
			System.out.println(S.substring(0, K) + "...");
		}

	} 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 int num = S.length(); num S.length() S.length S String x =""; x "" if (num <= K) {
			
			System.out.println(S);
			
		} else {
			System.out.println(S.substring(0, K) + "...");
		} num <= K num K {
			
			System.out.println(S);
			
		} System.out.println(S) System.out.println System.out System System.out S {
			System.out.println(S.substring(0, K) + "...");
		} System.out.println(S.substring(0, K) + "...") System.out.println System.out System System.out S.substring(0, K) + "..." S.substring(0, K) S.substring S 0 K "..." String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		//入力表示
		int K = scanner.nextInt();
		String S = scanner.next();
		int num = S.length();
		
		String x ="";
		
		if (num <= K) {
			
			System.out.println(S);
			
		} else {
			System.out.println(S.substring(0, K) + "...");
		}

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		//入力表示
		int K = scanner.nextInt();
		String S = scanner.next();
		int num = S.length();
		
		String x ="";
		
		if (num <= K) {
			
			System.out.println(S);
			
		} else {
			System.out.println(S.substring(0, K) + "...");
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);

		//入力表示
		int K = scanner.nextInt();
		String S = scanner.next();
		int num = S.length();
		
		String x ="";
		
		if (num <= K) {
			
			System.out.println(S);
			
		} else {
			System.out.println(S.substring(0, K) + "...");
		}

	}

}