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();

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

		if(K < S.length()) {
			S = S.substring(0,K);
			System.out.print(S);
			System.out.println("...");
		} else {
			System.out.print(S);
		}
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int K = scan.nextInt();
		String S = scan.next();

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

		Scanner scan = new Scanner(System.in);

		int K = scan.nextInt();
		String S = scan.next();

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

		if(K < S.length()) {
			S = S.substring(0,K);
			System.out.print(S);
			System.out.println("...");
		} else {
			System.out.print(S);
		}
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int K = scan.nextInt();
		String S = scan.next();

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

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