
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int K = scan.nextInt();
		String S = scan.next();
		String ans;

		if (S.length() <= K) {
			System.out.println(S);
		} else {
			ans = S.substring(0, K);
			ans = ans.concat("...");
			System.out.println(ans);

		}

		scan.close();

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

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int K = scan.nextInt();
		String S = scan.next();
		String ans;

		if (S.length() <= K) {
			System.out.println(S);
		} else {
			ans = S.substring(0, K);
			ans = ans.concat("...");
			System.out.println(ans);

		}

		scan.close();

	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int K = scan.nextInt();
		String S = scan.next();
		String ans;

		if (S.length() <= K) {
			System.out.println(S);
		} else {
			ans = S.substring(0, K);
			ans = ans.concat("...");
			System.out.println(ans);

		}

		scan.close();

	} main {

		Scanner scan = new Scanner(System.in);
		int K = scan.nextInt();
		String S = scan.next();
		String ans;

		if (S.length() <= K) {
			System.out.println(S);
		} else {
			ans = S.substring(0, K);
			ans = ans.concat("...");
			System.out.println(ans);

		}

		scan.close();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan String S = scan.next(); S scan.next() scan.next scan String ans; ans if (S.length() <= K) {
			System.out.println(S);
		} else {
			ans = S.substring(0, K);
			ans = ans.concat("...");
			System.out.println(ans);

		} 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 {
			ans = S.substring(0, K);
			ans = ans.concat("...");
			System.out.println(ans);

		} ans = S.substring(0, K) ans S.substring(0, K) S.substring S 0 K ans = ans.concat("...") ans ans.concat("...") ans.concat ans "..." System.out.println(ans) System.out.println System.out System System.out ans scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int K = scan.nextInt();
		String S = scan.next();
		String ans;

		if (S.length() <= K) {
			System.out.println(S);
		} else {
			ans = S.substring(0, K);
			ans = ans.concat("...");
			System.out.println(ans);

		}

		scan.close();

	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int K = scan.nextInt();
		String S = scan.next();
		String ans;

		if (S.length() <= K) {
			System.out.println(S);
		} else {
			ans = S.substring(0, K);
			ans = ans.concat("...");
			System.out.println(ans);

		}

		scan.close();

	}
} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int K = scan.nextInt();
		String S = scan.next();
		String ans;

		if (S.length() <= K) {
			System.out.println(S);
		} else {
			ans = S.substring(0, K);
			ans = ans.concat("...");
			System.out.println(ans);

		}

		scan.close();

	}
}
