import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String K = scan.next();
        int k = Integer.parseInt(K);
        String s = scan.next();

        int sLen = s.length();

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

        int sLen = s.length();

        if (sLen <= k) {
          System.out.println(s);
        } else {
          System.out.println(s.substring(0, k) + "...");
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String K = scan.next();
        int k = Integer.parseInt(K);
        String s = scan.next();

        int sLen = s.length();

        if (sLen <= k) {
          System.out.println(s);
        } else {
          System.out.println(s.substring(0, k) + "...");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        String K = scan.next();
        int k = Integer.parseInt(K);
        String s = scan.next();

        int sLen = s.length();

        if (sLen <= k) {
          System.out.println(s);
        } else {
          System.out.println(s.substring(0, k) + "...");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String K = scan.next(); K scan.next() scan.next scan int k = Integer.parseInt(K); k Integer.parseInt(K) Integer.parseInt Integer K String s = scan.next(); s scan.next() scan.next scan int sLen = s.length(); sLen s.length() s.length s if (sLen <= k) {
          System.out.println(s);
        } else {
          System.out.println(s.substring(0, k) + "...");
        } sLen <= k sLen k {
          System.out.println(s);
        } System.out.println(s) System.out.println System.out System System.out s {
          System.out.println(s.substring(0, k) + "...");
        } 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 "..." String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String K = scan.next();
        int k = Integer.parseInt(K);
        String s = scan.next();

        int sLen = s.length();

        if (sLen <= k) {
          System.out.println(s);
        } else {
          System.out.println(s.substring(0, k) + "...");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String K = scan.next();
        int k = Integer.parseInt(K);
        String s = scan.next();

        int sLen = s.length();

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

        int sLen = s.length();

        if (sLen <= k) {
          System.out.println(s);
        } else {
          System.out.println(s.substring(0, k) + "...");
        }
    }
}