import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        sc.close();
        String res = "";
        if (k >= s.length()) {
            res += s;
        } else {
            for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            }
            res += "...";
        }
        
        System.out.println(res);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        sc.close();
        String res = "";
        if (k >= s.length()) {
            res += s;
        } else {
            for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            }
            res += "...";
        }
        
        System.out.println(res);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        sc.close();
        String res = "";
        if (k >= s.length()) {
            res += s;
        } else {
            for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            }
            res += "...";
        }
        
        System.out.println(res);
    } main {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        sc.close();
        String res = "";
        if (k >= s.length()) {
            res += s;
        } else {
            for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            }
            res += "...";
        }
        
        System.out.println(res);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc sc.close() sc.close sc String res = ""; res "" if (k >= s.length()) {
            res += s;
        } else {
            for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            }
            res += "...";
        } k >= s.length() k s.length() s.length s {
            res += s;
        } res += s res s {
            for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            }
            res += "...";
        } for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
                res += s.charAt(i);
            } {
                res += s.charAt(i);
            } res += s.charAt(i) res s.charAt(i) s.charAt s i res += "..." res "..." System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        sc.close();
        String res = "";
        if (k >= s.length()) {
            res += s;
        } else {
            for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            }
            res += "...";
        }
        
        System.out.println(res);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        sc.close();
        String res = "";
        if (k >= s.length()) {
            res += s;
        } else {
            for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            }
            res += "...";
        }
        
        System.out.println(res);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        sc.close();
        String res = "";
        if (k >= s.length()) {
            res += s;
        } else {
            for (int i = 0; i < k; i++) {
                res += s.charAt(i);
            }
            res += "...";
        }
        
        System.out.println(res);
    }
}