import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int k = in.nextInt();
		String s = in.next();
		if(s.length()>k){
          String new_s = s.substring(0,k);
		System.out.println(new_s + "...");
		}else{
			System.out.println(s);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int k = in.nextInt();
		String s = in.next();
		if(s.length()>k){
          String new_s = s.substring(0,k);
		System.out.println(new_s + "...");
		}else{
			System.out.println(s);
		}
	}
} Main public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int k = in.nextInt();
		String s = in.next();
		if(s.length()>k){
          String new_s = s.substring(0,k);
		System.out.println(new_s + "...");
		}else{
			System.out.println(s);
		}
	} main {
		Scanner in = new Scanner(System.in);
		int k = in.nextInt();
		String s = in.next();
		if(s.length()>k){
          String new_s = s.substring(0,k);
		System.out.println(new_s + "...");
		}else{
			System.out.println(s);
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int k = in.nextInt(); k in.nextInt() in.nextInt in String s = in.next(); s in.next() in.next in if(s.length()>k){
          String new_s = s.substring(0,k);
		System.out.println(new_s + "...");
		}else{
			System.out.println(s);
		} s.length()>k s.length() s.length s k {
          String new_s = s.substring(0,k);
		System.out.println(new_s + "...");
		} String new_s = s.substring(0,k); new_s s.substring(0,k) s.substring s 0 k System.out.println(new_s + "...") System.out.println System.out System System.out new_s + "..." new_s "..." {
			System.out.println(s);
		} System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int k = in.nextInt();
		String s = in.next();
		if(s.length()>k){
          String new_s = s.substring(0,k);
		System.out.println(new_s + "...");
		}else{
			System.out.println(s);
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int k = in.nextInt();
		String s = in.next();
		if(s.length()>k){
          String new_s = s.substring(0,k);
		System.out.println(new_s + "...");
		}else{
			System.out.println(s);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int k = in.nextInt();
		String s = in.next();
		if(s.length()>k){
          String new_s = s.substring(0,k);
		System.out.println(new_s + "...");
		}else{
			System.out.println(s);
		}
	}
}
