import java.io.*;

public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        int K = Integer.parseInt (reader.readLine());
        String S = reader.readLine();
        if (S.length() <= K)
            System.out.println (S);
        else
            System.out.println (S.substring (0, K) + "...");
        return;
    }
} import java.io.*; io.* java public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        int K = Integer.parseInt (reader.readLine());
        String S = reader.readLine();
        if (S.length() <= K)
            System.out.println (S);
        else
            System.out.println (S.substring (0, K) + "...");
        return;
    }
} Main public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        int K = Integer.parseInt (reader.readLine());
        String S = reader.readLine();
        if (S.length() <= K)
            System.out.println (S);
        else
            System.out.println (S.substring (0, K) + "...");
        return;
    } main {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        int K = Integer.parseInt (reader.readLine());
        String S = reader.readLine();
        if (S.length() <= K)
            System.out.println (S);
        else
            System.out.println (S.substring (0, K) + "...");
        return;
    } BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in)); reader new BufferedReader (new InputStreamReader (System.in)) int K = Integer.parseInt (reader.readLine()); K Integer.parseInt (reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader String S = reader.readLine(); S reader.readLine() reader.readLine reader if (S.length() <= K)
            System.out.println (S);
        else
            System.out.println (S.substring (0, K) + "..."); S.length() <= K S.length() S.length S K System.out.println (S) System.out.println System.out System System.out S System.out.println (S.substring (0, K) + "...") System.out.println System.out System System.out S.substring (0, K) + "..." S.substring (0, K) S.substring S 0 K "..." return; String[] args args public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        int K = Integer.parseInt (reader.readLine());
        String S = reader.readLine();
        if (S.length() <= K)
            System.out.println (S);
        else
            System.out.println (S.substring (0, K) + "...");
        return;
    }
} public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        int K = Integer.parseInt (reader.readLine());
        String S = reader.readLine();
        if (S.length() <= K)
            System.out.println (S);
        else
            System.out.println (S.substring (0, K) + "...");
        return;
    }
} Main
import java.io.*;

public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        int K = Integer.parseInt (reader.readLine());
        String S = reader.readLine();
        if (S.length() <= K)
            System.out.println (S);
        else
            System.out.println (S.substring (0, K) + "...");
        return;
    }
}