import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
       Scanner sc = new Scanner(System.in);
        String h = sc.nextLine();
        String s = sc.nextLine();
        int k = Integer.parseInt(h);
        int len = String.valueOf( s ).length();
        if (len <= k) {
            System.out.println(s);
        } else {
            for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
       Scanner sc = new Scanner(System.in);
        String h = sc.nextLine();
        String s = sc.nextLine();
        int k = Integer.parseInt(h);
        int len = String.valueOf( s ).length();
        if (len <= k) {
            System.out.println(s);
        } else {
            for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
        
    }
} Main public static void main(String[] args) throws Exception {
       Scanner sc = new Scanner(System.in);
        String h = sc.nextLine();
        String s = sc.nextLine();
        int k = Integer.parseInt(h);
        int len = String.valueOf( s ).length();
        if (len <= k) {
            System.out.println(s);
        } else {
            for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
        
    } main {
       Scanner sc = new Scanner(System.in);
        String h = sc.nextLine();
        String s = sc.nextLine();
        int k = Integer.parseInt(h);
        int len = String.valueOf( s ).length();
        if (len <= k) {
            System.out.println(s);
        } else {
            for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String h = sc.nextLine(); h sc.nextLine() sc.nextLine sc String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc int k = Integer.parseInt(h); k Integer.parseInt(h) Integer.parseInt Integer h int len = String.valueOf( s ).length(); len String.valueOf( s ).length() String.valueOf( s ).length String.valueOf( s ) String.valueOf String s if (len <= k) {
            System.out.println(s);
        } else {
            for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        } len <= k len k {
            System.out.println(s);
        } System.out.println(s) System.out.println System.out System System.out s {
            for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        } for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            } int i = 0; int i = 0; i 0 i < k i k 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 System.out.print("...") System.out.print System.out System System.out "..." String[] args args public class Main {
    public static void main(String[] args) throws Exception {
       Scanner sc = new Scanner(System.in);
        String h = sc.nextLine();
        String s = sc.nextLine();
        int k = Integer.parseInt(h);
        int len = String.valueOf( s ).length();
        if (len <= k) {
            System.out.println(s);
        } else {
            for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
       Scanner sc = new Scanner(System.in);
        String h = sc.nextLine();
        String s = sc.nextLine();
        int k = Integer.parseInt(h);
        int len = String.valueOf( s ).length();
        if (len <= k) {
            System.out.println(s);
        } else {
            for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
       Scanner sc = new Scanner(System.in);
        String h = sc.nextLine();
        String s = sc.nextLine();
        int k = Integer.parseInt(h);
        int len = String.valueOf( s ).length();
        if (len <= k) {
            System.out.println(s);
        } else {
            for (int i = 0; i < k; i++) {
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
        
    }
}
