import java.util.Scanner;
 
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        String str = scan.next();
        int cnt = str.length();
        if (cnt<=num) {
			System.out.println(str);
		} else {
            String str2 = str.substring(0, num);
			System.out.println(str2+"...");
		}
        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        String str = scan.next();
        int cnt = str.length();
        if (cnt<=num) {
			System.out.println(str);
		} else {
            String str2 = str.substring(0, num);
			System.out.println(str2+"...");
		}
        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        String str = scan.next();
        int cnt = str.length();
        if (cnt<=num) {
			System.out.println(str);
		} else {
            String str2 = str.substring(0, num);
			System.out.println(str2+"...");
		}
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        String str = scan.next();
        int cnt = str.length();
        if (cnt<=num) {
			System.out.println(str);
		} else {
            String str2 = str.substring(0, num);
			System.out.println(str2+"...");
		}
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan String str = scan.next(); str scan.next() scan.next scan int cnt = str.length(); cnt str.length() str.length str if (cnt<=num) {
			System.out.println(str);
		} else {
            String str2 = str.substring(0, num);
			System.out.println(str2+"...");
		} cnt<=num cnt num {
			System.out.println(str);
		} System.out.println(str) System.out.println System.out System System.out str {
            String str2 = str.substring(0, num);
			System.out.println(str2+"...");
		} String str2 = str.substring(0, num); str2 str.substring(0, num) str.substring str 0 num System.out.println(str2+"...") System.out.println System.out System System.out str2+"..." str2 "..." scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        String str = scan.next();
        int cnt = str.length();
        if (cnt<=num) {
			System.out.println(str);
		} else {
            String str2 = str.substring(0, num);
			System.out.println(str2+"...");
		}
        scan.close();
    }
} public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        String str = scan.next();
        int cnt = str.length();
        if (cnt<=num) {
			System.out.println(str);
		} else {
            String str2 = str.substring(0, num);
			System.out.println(str2+"...");
		}
        scan.close();
    }
} Main
import java.util.Scanner;
 
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        String str = scan.next();
        int cnt = str.length();
        if (cnt<=num) {
			System.out.println(str);
		} else {
            String str2 = str.substring(0, num);
			System.out.println(str2+"...");
		}
        scan.close();
    }
}