import java.io.*;
import java.util.*;

public class Main {

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		int k = scn.nextInt();
		String s = scn.next();
		if (s.length() <= k)
			System.out.println(s);
		else {
			System.out.println(s.substring(0,k) + "...");
		}

	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		int k = scn.nextInt();
		String s = scn.next();
		if (s.length() <= k)
			System.out.println(s);
		else {
			System.out.println(s.substring(0,k) + "...");
		}

	}
} Main static long pmod = 1000000007L; pmod 1000000007L public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		int k = scn.nextInt();
		String s = scn.next();
		if (s.length() <= k)
			System.out.println(s);
		else {
			System.out.println(s.substring(0,k) + "...");
		}

	} main {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		int k = scn.nextInt();
		String s = scn.next();
		if (s.length() <= k)
			System.out.println(s);
		else {
			System.out.println(s.substring(0,k) + "...");
		}

	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int k = scn.nextInt(); k scn.nextInt() scn.nextInt scn String s = scn.next(); s scn.next() scn.next scn if (s.length() <= k)
			System.out.println(s);
		else {
			System.out.println(s.substring(0,k) + "...");
		} s.length() <= k s.length() s.length s k 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 {

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		int k = scn.nextInt();
		String s = scn.next();
		if (s.length() <= k)
			System.out.println(s);
		else {
			System.out.println(s.substring(0,k) + "...");
		}

	}
} public class Main {

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		int k = scn.nextInt();
		String s = scn.next();
		if (s.length() <= k)
			System.out.println(s);
		else {
			System.out.println(s.substring(0,k) + "...");
		}

	}
} Main
import java.io.*;
import java.util.*;

public class Main {

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		int k = scn.nextInt();
		String s = scn.next();
		if (s.length() <= k)
			System.out.println(s);
		else {
			System.out.println(s.substring(0,k) + "...");
		}

	}
}