import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int k = input.nextInt();
        String s = input.next();
        if (k < s.length()){
            s = s.substring(0,k) + "...";
            System.out.println(s);
        } else {
            System.out.println(s);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int k = input.nextInt();
        String s = input.next();
        if (k < s.length()){
            s = s.substring(0,k) + "...";
            System.out.println(s);
        } else {
            System.out.println(s);
        }
    }
} Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int k = input.nextInt();
        String s = input.next();
        if (k < s.length()){
            s = s.substring(0,k) + "...";
            System.out.println(s);
        } else {
            System.out.println(s);
        }
    } main {
        Scanner input = new Scanner(System.in);
        int k = input.nextInt();
        String s = input.next();
        if (k < s.length()){
            s = s.substring(0,k) + "...";
            System.out.println(s);
        } else {
            System.out.println(s);
        }
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int k = input.nextInt(); k input.nextInt() input.nextInt input String s = input.next(); s input.next() input.next input if (k < s.length()){
            s = s.substring(0,k) + "...";
            System.out.println(s);
        } else {
            System.out.println(s);
        } k < s.length() k s.length() s.length s {
            s = s.substring(0,k) + "...";
            System.out.println(s);
        } s = s.substring(0,k) + "..." s s.substring(0,k) + "..." s.substring(0,k) s.substring s 0 k "..." System.out.println(s) System.out.println System.out System System.out s {
            System.out.println(s);
        } System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int k = input.nextInt();
        String s = input.next();
        if (k < s.length()){
            s = s.substring(0,k) + "...";
            System.out.println(s);
        } else {
            System.out.println(s);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int k = input.nextInt();
        String s = input.next();
        if (k < s.length()){
            s = s.substring(0,k) + "...";
            System.out.println(s);
        } else {
            System.out.println(s);
        }
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int k = input.nextInt();
        String s = input.next();
        if (k < s.length()){
            s = s.substring(0,k) + "...";
            System.out.println(s);
        } else {
            System.out.println(s);
        }
    }
}