import java.util.*;
import javax.lang.model.util.ElementScanner6;
import java.lang.Math;

public class Main {

    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);

        // 入力
        int k = sc.nextInt();
        String s = sc.next();

        // 処理
        String out = "";
        if(s.length() <= k){
            out = s;
        } else {
            out = s.substring(0, k).concat("...");
        }

        // 出力
        System.out.println(out);
    }
} import java.util.*; util.* java import javax.lang.model.util.ElementScanner6; ElementScanner6 javax.lang.model.util import java.lang.Math; Math java.lang public class Main {

    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);

        // 入力
        int k = sc.nextInt();
        String s = sc.next();

        // 処理
        String out = "";
        if(s.length() <= k){
            out = s;
        } else {
            out = s.substring(0, k).concat("...");
        }

        // 出力
        System.out.println(out);
    }
} Main public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);

        // 入力
        int k = sc.nextInt();
        String s = sc.next();

        // 処理
        String out = "";
        if(s.length() <= k){
            out = s;
        } else {
            out = s.substring(0, k).concat("...");
        }

        // 出力
        System.out.println(out);
    } main {
        final Scanner sc = new Scanner(System.in);

        // 入力
        int k = sc.nextInt();
        String s = sc.next();

        // 処理
        String out = "";
        if(s.length() <= k){
            out = s;
        } else {
            out = s.substring(0, k).concat("...");
        }

        // 出力
        System.out.println(out);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc String out = ""; out "" if(s.length() <= k){
            out = s;
        } else {
            out = s.substring(0, k).concat("...");
        } s.length() <= k s.length() s.length s k {
            out = s;
        } out = s out s {
            out = s.substring(0, k).concat("...");
        } out = s.substring(0, k).concat("...") out s.substring(0, k).concat("...") s.substring(0, k).concat s.substring(0, k) s.substring s 0 k "..." System.out.println(out) System.out.println System.out System System.out out final String[] args args public class Main {

    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);

        // 入力
        int k = sc.nextInt();
        String s = sc.next();

        // 処理
        String out = "";
        if(s.length() <= k){
            out = s;
        } else {
            out = s.substring(0, k).concat("...");
        }

        // 出力
        System.out.println(out);
    }
} public class Main {

    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);

        // 入力
        int k = sc.nextInt();
        String s = sc.next();

        // 処理
        String out = "";
        if(s.length() <= k){
            out = s;
        } else {
            out = s.substring(0, k).concat("...");
        }

        // 出力
        System.out.println(out);
    }
} Main
import java.util.*;
import javax.lang.model.util.ElementScanner6;
import java.lang.Math;

public class Main {

    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);

        // 入力
        int k = sc.nextInt();
        String s = sc.next();

        // 処理
        String out = "";
        if(s.length() <= k){
            out = s;
        } else {
            out = s.substring(0, k).concat("...");
        }

        // 出力
        System.out.println(out);
    }
}
