import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int k = sc.nextInt();
        String s = sc.next();
        
        if(s.length() <= k) {
            System.out.println(s);
        }else{
            for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int k = sc.nextInt();
        String s = sc.next();
        
        if(s.length() <= k) {
            System.out.println(s);
        }else{
            for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int k = sc.nextInt();
        String s = sc.next();
        
        if(s.length() <= k) {
            System.out.println(s);
        }else{
            for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        
        int k = sc.nextInt();
        String s = sc.next();
        
        if(s.length() <= k) {
            System.out.println(s);
        }else{
            for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc if(s.length() <= k) {
            System.out.println(s);
        }else{
            for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        } s.length() <= k s.length() s.length s k {
            System.out.println(s);
        } System.out.println(s) System.out.println System.out System System.out s {
            for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        } for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
                System.out.print(s.charAt(i));
            } {
                System.out.print(s.charAt(i));
            } System.out.print(s.charAt(i)) System.out.print System.out System System.out s.charAt(i) s.charAt s i System.out.print("...") System.out.print System.out System System.out "..." String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int k = sc.nextInt();
        String s = sc.next();
        
        if(s.length() <= k) {
            System.out.println(s);
        }else{
            for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int k = sc.nextInt();
        String s = sc.next();
        
        if(s.length() <= k) {
            System.out.println(s);
        }else{
            for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int k = sc.nextInt();
        String s = sc.next();
        
        if(s.length() <= k) {
            System.out.println(s);
        }else{
            for(int i = 0; i < k; i++){
                System.out.print(s.charAt(i));
            }
            System.out.print("...");
        }
    }
}
