import java.io.*;

public class Main {
    public static void main(String [] args) {
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            int k = Integer.parseInt(in.readLine());
            String s = in.readLine();
            if (s.length() <= k) {
                System.out.print(s);
            } else {
                System.out.print(s.substring(0, k) + "...");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} import java.io.*; io.* java public class Main {
    public static void main(String [] args) {
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            int k = Integer.parseInt(in.readLine());
            String s = in.readLine();
            if (s.length() <= k) {
                System.out.print(s);
            } else {
                System.out.print(s.substring(0, k) + "...");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String [] args) {
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            int k = Integer.parseInt(in.readLine());
            String s = in.readLine();
            if (s.length() <= k) {
                System.out.print(s);
            } else {
                System.out.print(s.substring(0, k) + "...");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    } main {
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            int k = Integer.parseInt(in.readLine());
            String s = in.readLine();
            if (s.length() <= k) {
                System.out.print(s);
            } else {
                System.out.print(s.substring(0, k) + "...");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    } try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            int k = Integer.parseInt(in.readLine());
            String s = in.readLine();
            if (s.length() <= k) {
                System.out.print(s);
            } else {
                System.out.print(s.substring(0, k) + "...");
            }
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            int k = Integer.parseInt(in.readLine());
            String s = in.readLine();
            if (s.length() <= k) {
                System.out.print(s);
            } else {
                System.out.print(s.substring(0, k) + "...");
            }
        } 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 s = in.readLine(); s in.readLine() in.readLine in if (s.length() <= k) {
                System.out.print(s);
            } else {
                System.out.print(s.substring(0, k) + "...");
            } s.length() <= k s.length() s.length s k {
                System.out.print(s);
            } System.out.print(s) System.out.print System.out System System.out s {
                System.out.print(s.substring(0, k) + "...");
            } System.out.print(s.substring(0, k) + "...") System.out.print System.out System System.out s.substring(0, k) + "..." s.substring(0, k) s.substring s 0 k "..." String [] args args public class Main {
    public static void main(String [] args) {
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            int k = Integer.parseInt(in.readLine());
            String s = in.readLine();
            if (s.length() <= k) {
                System.out.print(s);
            } else {
                System.out.print(s.substring(0, k) + "...");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} public class Main {
    public static void main(String [] args) {
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            int k = Integer.parseInt(in.readLine());
            String s = in.readLine();
            if (s.length() <= k) {
                System.out.print(s);
            } else {
                System.out.print(s.substring(0, k) + "...");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} Main
import java.io.*;

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