import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String N = scanner.next();
        if (N.length() <= K) {
            System.out.println(N);
        } else {
            System.out.println(N.substring(0, K) + "...");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String N = scanner.next();
        if (N.length() <= K) {
            System.out.println(N);
        } else {
            System.out.println(N.substring(0, K) + "...");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String N = scanner.next();
        if (N.length() <= K) {
            System.out.println(N);
        } else {
            System.out.println(N.substring(0, K) + "...");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String N = scanner.next();
        if (N.length() <= K) {
            System.out.println(N);
        } else {
            System.out.println(N.substring(0, K) + "...");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int K = scanner.nextInt(); K scanner.nextInt() scanner.nextInt scanner String N = scanner.next(); N scanner.next() scanner.next scanner if (N.length() <= K) {
            System.out.println(N);
        } else {
            System.out.println(N.substring(0, K) + "...");
        } N.length() <= K N.length() N.length N K {
            System.out.println(N);
        } System.out.println(N) System.out.println System.out System System.out N {
            System.out.println(N.substring(0, K) + "...");
        } System.out.println(N.substring(0, K) + "...") System.out.println System.out System System.out N.substring(0, K) + "..." N.substring(0, K) N.substring N 0 K "..." String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String N = scanner.next();
        if (N.length() <= K) {
            System.out.println(N);
        } else {
            System.out.println(N.substring(0, K) + "...");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String N = scanner.next();
        if (N.length() <= K) {
            System.out.println(N);
        } else {
            System.out.println(N.substring(0, K) + "...");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String N = scanner.next();
        if (N.length() <= K) {
            System.out.println(N);
        } else {
            System.out.println(N.substring(0, K) + "...");
        }
    }
}
