
import java.util.Scanner;

public class Main {
    static Scanner in = new Scanner(System.in);

    static void run() {
        int k = in.nextInt();
        String s = in.next();
        int i = 0;
        for (;i<k && i<s.length();i++) {
            System.out.print(s.charAt(i));
        }
        if (i < s.length()) System.out.print("...");
        System.out.println();
    }

    public static void main(String[] args) {
        run();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    static Scanner in = new Scanner(System.in);

    static void run() {
        int k = in.nextInt();
        String s = in.next();
        int i = 0;
        for (;i<k && i<s.length();i++) {
            System.out.print(s.charAt(i));
        }
        if (i < s.length()) System.out.print("...");
        System.out.println();
    }

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

    static void run() {
        int k = in.nextInt();
        String s = in.next();
        int i = 0;
        for (;i<k && i<s.length();i++) {
            System.out.print(s.charAt(i));
        }
        if (i < s.length()) System.out.print("...");
        System.out.println();
    }

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

    static void run() {
        int k = in.nextInt();
        String s = in.next();
        int i = 0;
        for (;i<k && i<s.length();i++) {
            System.out.print(s.charAt(i));
        }
        if (i < s.length()) System.out.print("...");
        System.out.println();
    }

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

import java.util.Scanner;

public class Main {
    static Scanner in = new Scanner(System.in);

    static void run() {
        int k = in.nextInt();
        String s = in.next();
        int i = 0;
        for (;i<k && i<s.length();i++) {
            System.out.print(s.charAt(i));
        }
        if (i < s.length()) System.out.print("...");
        System.out.println();
    }

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