import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(in.readLine());
        String input = in.readLine();

        if (k < input.length()) {
            System.out.print(input.substring(0, k) + "...");
        } else {
            System.out.print(input);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(in.readLine());
        String input = in.readLine();

        if (k < input.length()) {
            System.out.print(input.substring(0, k) + "...");
        } else {
            System.out.print(input);
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(in.readLine());
        String input = in.readLine();

        if (k < input.length()) {
            System.out.print(input.substring(0, k) + "...");
        } else {
            System.out.print(input);
        }
    } main {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(in.readLine());
        String input = in.readLine();

        if (k < input.length()) {
            System.out.print(input.substring(0, k) + "...");
        } else {
            System.out.print(input);
        }
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int k = Integer.parseInt(in.readLine()); k Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in String input = in.readLine(); input in.readLine() in.readLine in if (k < input.length()) {
            System.out.print(input.substring(0, k) + "...");
        } else {
            System.out.print(input);
        } k < input.length() k input.length() input.length input {
            System.out.print(input.substring(0, k) + "...");
        } System.out.print(input.substring(0, k) + "...") System.out.print System.out System System.out input.substring(0, k) + "..." input.substring(0, k) input.substring input 0 k "..." {
            System.out.print(input);
        } System.out.print(input) System.out.print System.out System System.out input String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(in.readLine());
        String input = in.readLine();

        if (k < input.length()) {
            System.out.print(input.substring(0, k) + "...");
        } else {
            System.out.print(input);
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(in.readLine());
        String input = in.readLine();

        if (k < input.length()) {
            System.out.print(input.substring(0, k) + "...");
        } else {
            System.out.print(input);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(in.readLine());
        String input = in.readLine();

        if (k < input.length()) {
            System.out.print(input.substring(0, k) + "...");
        } else {
            System.out.print(input);
        }
    }
}