import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		int I1= sc.nextInt();
		String S2 = sc.next();
		sc.close();

		if(S2.length() <= I1) {
			System.out.println(S2);
		}else{
			System.out.println(S2.substring(0, I1)+"...");
		}
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int I1= sc.nextInt();
		String S2 = sc.next();
		sc.close();

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

		Scanner sc = new Scanner(System.in);
		int I1= sc.nextInt();
		String S2 = sc.next();
		sc.close();

		if(S2.length() <= I1) {
			System.out.println(S2);
		}else{
			System.out.println(S2.substring(0, I1)+"...");
		}
	} main {

		Scanner sc = new Scanner(System.in);
		int I1= sc.nextInt();
		String S2 = sc.next();
		sc.close();

		if(S2.length() <= I1) {
			System.out.println(S2);
		}else{
			System.out.println(S2.substring(0, I1)+"...");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int I1= sc.nextInt(); I1 sc.nextInt() sc.nextInt sc String S2 = sc.next(); S2 sc.next() sc.next sc sc.close() sc.close sc if(S2.length() <= I1) {
			System.out.println(S2);
		}else{
			System.out.println(S2.substring(0, I1)+"...");
		} S2.length() <= I1 S2.length() S2.length S2 I1 {
			System.out.println(S2);
		} System.out.println(S2) System.out.println System.out System System.out S2 {
			System.out.println(S2.substring(0, I1)+"...");
		} System.out.println(S2.substring(0, I1)+"...") System.out.println System.out System System.out S2.substring(0, I1)+"..." S2.substring(0, I1) S2.substring S2 0 I1 "..." String[] args args public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int I1= sc.nextInt();
		String S2 = sc.next();
		sc.close();

		if(S2.length() <= I1) {
			System.out.println(S2);
		}else{
			System.out.println(S2.substring(0, I1)+"...");
		}
	}
} public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int I1= sc.nextInt();
		String S2 = sc.next();
		sc.close();

		if(S2.length() <= I1) {
			System.out.println(S2);
		}else{
			System.out.println(S2.substring(0, I1)+"...");
		}
	}
} Main
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		int I1= sc.nextInt();
		String S2 = sc.next();
		sc.close();

		if(S2.length() <= I1) {
			System.out.println(S2);
		}else{
			System.out.println(S2.substring(0, I1)+"...");
		}
	}
}

