import java.util.Scanner;

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

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