import java.util.Scanner;

public class Main {

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

} import java.util.Scanner; Scanner java.util public class Main {

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

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

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

} public class Main {

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

} Main
import java.util.Scanner;

public class Main {

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

}
