
import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);
    static int K = sc.nextInt();
    static String S = sc.next();

    public static void main(String[] args) {
        char str[] = S.toCharArray();
        if (str.length <= K){
            System.out.println(S);
            return;
        }
        for (int i = 0; i < K; i++){
            System.out.print(str[i]);
        }
        System.out.print("...");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    static Scanner sc = new Scanner(System.in);
    static int K = sc.nextInt();
    static String S = sc.next();

    public static void main(String[] args) {
        char str[] = S.toCharArray();
        if (str.length <= K){
            System.out.println(S);
            return;
        }
        for (int i = 0; i < K; i++){
            System.out.print(str[i]);
        }
        System.out.print("...");
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc static String S = sc.next(); S sc.next() sc.next sc public static void main(String[] args) {
        char str[] = S.toCharArray();
        if (str.length <= K){
            System.out.println(S);
            return;
        }
        for (int i = 0; i < K; i++){
            System.out.print(str[i]);
        }
        System.out.print("...");
    } main {
        char str[] = S.toCharArray();
        if (str.length <= K){
            System.out.println(S);
            return;
        }
        for (int i = 0; i < K; i++){
            System.out.print(str[i]);
        }
        System.out.print("...");
    } char str[] = S.toCharArray(); str S.toCharArray() S.toCharArray S if (str.length <= K){
            System.out.println(S);
            return;
        } str.length <= K str.length str str.length K {
            System.out.println(S);
            return;
        } System.out.println(S) System.out.println System.out System System.out S return; for (int i = 0; i < K; i++){
            System.out.print(str[i]);
        } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
            System.out.print(str[i]);
        } {
            System.out.print(str[i]);
        } System.out.print(str[i]) System.out.print System.out System System.out str[i] str i System.out.print("...") System.out.print System.out System System.out "..." String[] args args public class Main {
    static Scanner sc = new Scanner(System.in);
    static int K = sc.nextInt();
    static String S = sc.next();

    public static void main(String[] args) {
        char str[] = S.toCharArray();
        if (str.length <= K){
            System.out.println(S);
            return;
        }
        for (int i = 0; i < K; i++){
            System.out.print(str[i]);
        }
        System.out.print("...");
    }
} public class Main {
    static Scanner sc = new Scanner(System.in);
    static int K = sc.nextInt();
    static String S = sc.next();

    public static void main(String[] args) {
        char str[] = S.toCharArray();
        if (str.length <= K){
            System.out.println(S);
            return;
        }
        for (int i = 0; i < K; i++){
            System.out.print(str[i]);
        }
        System.out.print("...");
    }
} Main

import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);
    static int K = sc.nextInt();
    static String S = sc.next();

    public static void main(String[] args) {
        char str[] = S.toCharArray();
        if (str.length <= K){
            System.out.println(S);
            return;
        }
        for (int i = 0; i < K; i++){
            System.out.print(str[i]);
        }
        System.out.print("...");
    }
}
