import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int K = Integer.parseInt(st.nextToken());
        String S = br.readLine();

        if(S.length() > K) {
            String tmp = S.substring(0, K);            
            pw.println(tmp + "...");
        } else {
            pw.println(S);
        }
       
        br.close();
        pw.close();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.PrintWriter; PrintWriter java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int K = Integer.parseInt(st.nextToken());
        String S = br.readLine();

        if(S.length() > K) {
            String tmp = S.substring(0, K);            
            pw.println(tmp + "...");
        } else {
            pw.println(S);
        }
       
        br.close();
        pw.close();
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int K = Integer.parseInt(st.nextToken());
        String S = br.readLine();

        if(S.length() > K) {
            String tmp = S.substring(0, K);            
            pw.println(tmp + "...");
        } else {
            pw.println(S);
        }
       
        br.close();
        pw.close();
    } main {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int K = Integer.parseInt(st.nextToken());
        String S = br.readLine();

        if(S.length() > K) {
            String tmp = S.substring(0, K);            
            pw.println(tmp + "...");
        } else {
            pw.println(S);
        }
       
        br.close();
        pw.close();
    } BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in)); br new BufferedReader(new java.io.InputStreamReader(System.in)) PrintWriter pw = new PrintWriter(System.out); pw new PrintWriter(System.out) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) int K = Integer.parseInt(st.nextToken()); K Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st String S = br.readLine(); S br.readLine() br.readLine br if(S.length() > K) {
            String tmp = S.substring(0, K);            
            pw.println(tmp + "...");
        } else {
            pw.println(S);
        } S.length() > K S.length() S.length S K {
            String tmp = S.substring(0, K);            
            pw.println(tmp + "...");
        } String tmp = S.substring(0, K); tmp S.substring(0, K) S.substring S 0 K pw.println(tmp + "...") pw.println pw tmp + "..." tmp "..." {
            pw.println(S);
        } pw.println(S) pw.println pw S br.close() br.close br pw.close() pw.close pw String[] args args public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int K = Integer.parseInt(st.nextToken());
        String S = br.readLine();

        if(S.length() > K) {
            String tmp = S.substring(0, K);            
            pw.println(tmp + "...");
        } else {
            pw.println(S);
        }
       
        br.close();
        pw.close();
    }
} public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int K = Integer.parseInt(st.nextToken());
        String S = br.readLine();

        if(S.length() > K) {
            String tmp = S.substring(0, K);            
            pw.println(tmp + "...");
        } else {
            pw.println(S);
        }
       
        br.close();
        pw.close();
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int K = Integer.parseInt(st.nextToken());
        String S = br.readLine();

        if(S.length() > K) {
            String tmp = S.substring(0, K);            
            pw.println(tmp + "...");
        } else {
            pw.println(S);
        }
       
        br.close();
        pw.close();
    }
}