import java.util.Scanner;

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

        int K = sc.nextInt();
        String S = sc.next();

        System.out.println(solve(K, S));

        sc.close();
    }

    static String solve(int K, String S) {
        return (S.length() <= K) ? S : String.format("%s...", S.substring(0, K));
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int K = sc.nextInt();
        String S = sc.next();

        System.out.println(solve(K, S));

        sc.close();
    }

    static String solve(int K, String S) {
        return (S.length() <= K) ? S : String.format("%s...", S.substring(0, K));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int K = sc.nextInt();
        String S = sc.next();

        System.out.println(solve(K, S));

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

        int K = sc.nextInt();
        String S = sc.next();

        System.out.println(solve(K, S));

        sc.close();
    } 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 System.out.println(solve(K, S)) System.out.println System.out System System.out solve(K, S) solve K S sc.close() sc.close sc String[] args args static String solve(int K, String S) {
        return (S.length() <= K) ? S : String.format("%s...", S.substring(0, K));
    } solve {
        return (S.length() <= K) ? S : String.format("%s...", S.substring(0, K));
    } return (S.length() <= K) ? S : String.format("%s...", S.substring(0, K)); (S.length() <= K) ? S : String.format("%s...", S.substring(0, K)) (S.length() <= K) S.length() S.length S K S String.format("%s...", S.substring(0, K)) String.format String "%s..." S.substring(0, K) S.substring S 0 K int K K String S S public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int K = sc.nextInt();
        String S = sc.next();

        System.out.println(solve(K, S));

        sc.close();
    }

    static String solve(int K, String S) {
        return (S.length() <= K) ? S : String.format("%s...", S.substring(0, K));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int K = sc.nextInt();
        String S = sc.next();

        System.out.println(solve(K, S));

        sc.close();
    }

    static String solve(int K, String S) {
        return (S.length() <= K) ? S : String.format("%s...", S.substring(0, K));
    }
} Main
import java.util.Scanner;

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

        int K = sc.nextInt();
        String S = sc.next();

        System.out.println(solve(K, S));

        sc.close();
    }

    static String solve(int K, String S) {
        return (S.length() <= K) ? S : String.format("%s...", S.substring(0, K));
    }
}