import java.util.*;

public class Main{
	int N;
	Scanner reader = new Scanner(System.in);
	public static void main(String[]args) {
		 Main p = new Main();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		String s = reader.next();
		if(s.length()<=N)
			System.out.print(s);
		else
			System.out.print(s.substring(0,N)+"...");
	}
} import java.util.*; util.* java public class Main{
	int N;
	Scanner reader = new Scanner(System.in);
	public static void main(String[]args) {
		 Main p = new Main();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		String s = reader.next();
		if(s.length()<=N)
			System.out.print(s);
		else
			System.out.print(s.substring(0,N)+"...");
	}
} Main int N; N Scanner reader = new Scanner(System.in); reader new Scanner(System.in) public static void main(String[]args) {
		 Main p = new Main();
		 p.run();
	} main {
		 Main p = new Main();
		 p.run();
	} Main p = new Main(); p new Main() p.run() p.run p String[]args args public void run() {
		N = reader.nextInt();
		String s = reader.next();
		if(s.length()<=N)
			System.out.print(s);
		else
			System.out.print(s.substring(0,N)+"...");
	} run {
		N = reader.nextInt();
		String s = reader.next();
		if(s.length()<=N)
			System.out.print(s);
		else
			System.out.print(s.substring(0,N)+"...");
	} N = reader.nextInt() N reader.nextInt() reader.nextInt reader String s = reader.next(); s reader.next() reader.next reader if(s.length()<=N)
			System.out.print(s);
		else
			System.out.print(s.substring(0,N)+"..."); s.length()<=N s.length() s.length s N System.out.print(s) System.out.print System.out System System.out s System.out.print(s.substring(0,N)+"...") System.out.print System.out System System.out s.substring(0,N)+"..." s.substring(0,N) s.substring s 0 N "..." public class Main{
	int N;
	Scanner reader = new Scanner(System.in);
	public static void main(String[]args) {
		 Main p = new Main();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		String s = reader.next();
		if(s.length()<=N)
			System.out.print(s);
		else
			System.out.print(s.substring(0,N)+"...");
	}
} public class Main{
	int N;
	Scanner reader = new Scanner(System.in);
	public static void main(String[]args) {
		 Main p = new Main();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		String s = reader.next();
		if(s.length()<=N)
			System.out.print(s);
		else
			System.out.print(s.substring(0,N)+"...");
	}
} Main
import java.util.*;

public class Main{
	int N;
	Scanner reader = new Scanner(System.in);
	public static void main(String[]args) {
		 Main p = new Main();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		String s = reader.next();
		if(s.length()<=N)
			System.out.print(s);
		else
			System.out.print(s.substring(0,N)+"...");
	}
}
