
import java.util.Scanner;

public class Main {

    private static String solve(String s, int k) {
        if (s.length() == k || s.length() < k)
            return s;

        return s.substring(0, k) + "...";
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = Integer.parseInt(sc.next());
        String s = sc.next();
        String res = solve(s, k);
        System.out.println(res);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    private static String solve(String s, int k) {
        if (s.length() == k || s.length() < k)
            return s;

        return s.substring(0, k) + "...";
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = Integer.parseInt(sc.next());
        String s = sc.next();
        String res = solve(s, k);
        System.out.println(res);
    }
} Main private static String solve(String s, int k) {
        if (s.length() == k || s.length() < k)
            return s;

        return s.substring(0, k) + "...";
    } solve {
        if (s.length() == k || s.length() < k)
            return s;

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

    private static String solve(String s, int k) {
        if (s.length() == k || s.length() < k)
            return s;

        return s.substring(0, k) + "...";
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = Integer.parseInt(sc.next());
        String s = sc.next();
        String res = solve(s, k);
        System.out.println(res);
    }
} public class Main {

    private static String solve(String s, int k) {
        if (s.length() == k || s.length() < k)
            return s;

        return s.substring(0, k) + "...";
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = Integer.parseInt(sc.next());
        String s = sc.next();
        String res = solve(s, k);
        System.out.println(res);
    }
} Main

import java.util.Scanner;

public class Main {

    private static String solve(String s, int k) {
        if (s.length() == k || s.length() < k)
            return s;

        return s.substring(0, k) + "...";
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = Integer.parseInt(sc.next());
        String s = sc.next();
        String res = solve(s, k);
        System.out.println(res);
    }
}
