import java.util.Scanner;

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

        int K = Integer.parseInt(sc.next());
        String S = sc.next();

        if (S.length() <= K) {
            System.out.println(S);
            return;
        }
        S = S.substring(0, K);
        System.out.println(S + "...");

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int K = Integer.parseInt(sc.next());
        String S = sc.next();

        if (S.length() <= K) {
            System.out.println(S);
            return;
        }
        S = S.substring(0, K);
        System.out.println(S + "...");

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

        int K = Integer.parseInt(sc.next());
        String S = sc.next();

        if (S.length() <= K) {
            System.out.println(S);
            return;
        }
        S = S.substring(0, K);
        System.out.println(S + "...");

    } main {
        Scanner sc = new Scanner(System.in);

        int K = Integer.parseInt(sc.next());
        String S = sc.next();

        if (S.length() <= K) {
            System.out.println(S);
            return;
        }
        S = S.substring(0, K);
        System.out.println(S + "...");

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = Integer.parseInt(sc.next()); K Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc String S = sc.next(); S sc.next() sc.next sc if (S.length() <= K) {
            System.out.println(S);
            return;
        } S.length() <= K S.length() S.length S K {
            System.out.println(S);
            return;
        } System.out.println(S) System.out.println System.out System System.out S return; S = S.substring(0, K) S S.substring(0, K) S.substring S 0 K System.out.println(S + "...") System.out.println System.out System System.out S + "..." S "..." String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int K = Integer.parseInt(sc.next());
        String S = sc.next();

        if (S.length() <= K) {
            System.out.println(S);
            return;
        }
        S = S.substring(0, K);
        System.out.println(S + "...");

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

        int K = Integer.parseInt(sc.next());
        String S = sc.next();

        if (S.length() <= K) {
            System.out.println(S);
            return;
        }
        S = S.substring(0, K);
        System.out.println(S + "...");

    }
} Main
import java.util.Scanner;

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

        int K = Integer.parseInt(sc.next());
        String S = sc.next();

        if (S.length() <= K) {
            System.out.println(S);
            return;
        }
        S = S.substring(0, K);
        System.out.println(S + "...");

    }
}
