
import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int k = sc.nextInt();
        final String s = sc.next();
        sc.close();

        String result = s;
        if (s.length() > k) {
            result = result.substring(0, k) + "...";
        }
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int k = sc.nextInt();
        final String s = sc.next();
        sc.close();

        String result = s;
        if (s.length() > k) {
            result = result.substring(0, k) + "...";
        }
        System.out.println(result);
    }
} Main public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int k = sc.nextInt();
        final String s = sc.next();
        sc.close();

        String result = s;
        if (s.length() > k) {
            result = result.substring(0, k) + "...";
        }
        System.out.println(result);
    } main {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int k = sc.nextInt();
        final String s = sc.next();
        sc.close();

        String result = s;
        if (s.length() > k) {
            result = result.substring(0, k) + "...";
        }
        System.out.println(result);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc final String s = sc.next(); s sc.next() sc.next sc sc.close() sc.close sc String result = s; result s if (s.length() > k) {
            result = result.substring(0, k) + "...";
        } s.length() > k s.length() s.length s k {
            result = result.substring(0, k) + "...";
        } result = result.substring(0, k) + "..." result result.substring(0, k) + "..." result.substring(0, k) result.substring result 0 k "..." System.out.println(result) System.out.println System.out System System.out result final String[] args args public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int k = sc.nextInt();
        final String s = sc.next();
        sc.close();

        String result = s;
        if (s.length() > k) {
            result = result.substring(0, k) + "...";
        }
        System.out.println(result);
    }
} public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int k = sc.nextInt();
        final String s = sc.next();
        sc.close();

        String result = s;
        if (s.length() > k) {
            result = result.substring(0, k) + "...";
        }
        System.out.println(result);
    }
} Main

import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int k = sc.nextInt();
        final String s = sc.next();
        sc.close();

        String result = s;
        if (s.length() > k) {
            result = result.substring(0, k) + "...";
        }
        System.out.println(result);
    }
}