import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int len = sc.nextInt();
        String target = sc.next();

        if (len >= target.length()) {
            System.out.println(target);
        } else {
            System.out.println(target.substring(0, len) + "...");
        }

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

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int len = sc.nextInt();
        String target = sc.next();

        if (len >= target.length()) {
            System.out.println(target);
        } else {
            System.out.println(target.substring(0, len) + "...");
        }

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

        Scanner sc = new Scanner(System.in);
        int len = sc.nextInt();
        String target = sc.next();

        if (len >= target.length()) {
            System.out.println(target);
        } else {
            System.out.println(target.substring(0, len) + "...");
        }

    } main {

        Scanner sc = new Scanner(System.in);
        int len = sc.nextInt();
        String target = sc.next();

        if (len >= target.length()) {
            System.out.println(target);
        } else {
            System.out.println(target.substring(0, len) + "...");
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int len = sc.nextInt(); len sc.nextInt() sc.nextInt sc String target = sc.next(); target sc.next() sc.next sc if (len >= target.length()) {
            System.out.println(target);
        } else {
            System.out.println(target.substring(0, len) + "...");
        } len >= target.length() len target.length() target.length target {
            System.out.println(target);
        } System.out.println(target) System.out.println System.out System System.out target {
            System.out.println(target.substring(0, len) + "...");
        } System.out.println(target.substring(0, len) + "...") System.out.println System.out System System.out target.substring(0, len) + "..." target.substring(0, len) target.substring target 0 len "..." String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int len = sc.nextInt();
        String target = sc.next();

        if (len >= target.length()) {
            System.out.println(target);
        } else {
            System.out.println(target.substring(0, len) + "...");
        }

    }
} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int len = sc.nextInt();
        String target = sc.next();

        if (len >= target.length()) {
            System.out.println(target);
        } else {
            System.out.println(target.substring(0, len) + "...");
        }

    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int len = sc.nextInt();
        String target = sc.next();

        if (len >= target.length()) {
            System.out.println(target);
        } else {
            System.out.println(target.substring(0, len) + "...");
        }

    }
}
