import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        String[] list = s.split("");

        if (list.length <= k) {
            System.out.println(s);
            return;
        }

        for (int i = 0; i < k; i++) {
            System.out.print(list[i]);
        }
        System.out.print("...");
    }
} import java.util.Scanner; Scanner 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();
        String[] list = s.split("");

        if (list.length <= k) {
            System.out.println(s);
            return;
        }

        for (int i = 0; i < k; i++) {
            System.out.print(list[i]);
        }
        System.out.print("...");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        String[] list = s.split("");

        if (list.length <= k) {
            System.out.println(s);
            return;
        }

        for (int i = 0; i < k; i++) {
            System.out.print(list[i]);
        }
        System.out.print("...");
    } main {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        String[] list = s.split("");

        if (list.length <= k) {
            System.out.println(s);
            return;
        }

        for (int i = 0; i < k; i++) {
            System.out.print(list[i]);
        }
        System.out.print("...");
    } 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 String[] list = s.split(""); list s.split("") s.split s "" if (list.length <= k) {
            System.out.println(s);
            return;
        } list.length <= k list.length list list.length k {
            System.out.println(s);
            return;
        } System.out.println(s) System.out.println System.out System System.out s return; for (int i = 0; i < k; i++) {
            System.out.print(list[i]);
        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
            System.out.print(list[i]);
        } {
            System.out.print(list[i]);
        } System.out.print(list[i]) System.out.print System.out System System.out list[i] list i System.out.print("...") System.out.print System.out System System.out "..." 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();
        String[] list = s.split("");

        if (list.length <= k) {
            System.out.println(s);
            return;
        }

        for (int i = 0; i < k; i++) {
            System.out.print(list[i]);
        }
        System.out.print("...");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        String[] list = s.split("");

        if (list.length <= k) {
            System.out.println(s);
            return;
        }

        for (int i = 0; i < k; i++) {
            System.out.print(list[i]);
        }
        System.out.print("...");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        String[] list = s.split("");

        if (list.length <= k) {
            System.out.println(s);
            return;
        }

        for (int i = 0; i < k; i++) {
            System.out.print(list[i]);
        }
        System.out.print("...");
    }
}