import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        char[] s = sc.next().toCharArray();

        if (s.length <= k) {
            System.out.println(s);
        } else {
            System.out.println(new String(Arrays.copyOf(s, k)) + "...");
        }
    }
} import java.util.Arrays; Arrays java.util 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();
        char[] s = sc.next().toCharArray();

        if (s.length <= k) {
            System.out.println(s);
        } else {
            System.out.println(new String(Arrays.copyOf(s, k)) + "...");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        char[] s = sc.next().toCharArray();

        if (s.length <= k) {
            System.out.println(s);
        } else {
            System.out.println(new String(Arrays.copyOf(s, k)) + "...");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        char[] s = sc.next().toCharArray();

        if (s.length <= k) {
            System.out.println(s);
        } else {
            System.out.println(new String(Arrays.copyOf(s, k)) + "...");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc char[] s = sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc if (s.length <= k) {
            System.out.println(s);
        } else {
            System.out.println(new String(Arrays.copyOf(s, k)) + "...");
        } s.length <= k s.length s s.length k {
            System.out.println(s);
        } System.out.println(s) System.out.println System.out System System.out s {
            System.out.println(new String(Arrays.copyOf(s, k)) + "...");
        } System.out.println(new String(Arrays.copyOf(s, k)) + "...") System.out.println System.out System System.out new String(Arrays.copyOf(s, k)) + "..." new String(Arrays.copyOf(s, k)) "..." String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        char[] s = sc.next().toCharArray();

        if (s.length <= k) {
            System.out.println(s);
        } else {
            System.out.println(new String(Arrays.copyOf(s, k)) + "...");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        char[] s = sc.next().toCharArray();

        if (s.length <= k) {
            System.out.println(s);
        } else {
            System.out.println(new String(Arrays.copyOf(s, k)) + "...");
        }
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        char[] s = sc.next().toCharArray();

        if (s.length <= k) {
            System.out.println(s);
        } else {
            System.out.println(new String(Arrays.copyOf(s, k)) + "...");
        }
    }
}