import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        
        // 格納
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String word = scan.next();
        String word1;
        if(a <= word.length()){
            word1 = word.substring(0,a);
            if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            }
        }else{
            System.out.println(word);
        }
    }
}
         import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        // 格納
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String word = scan.next();
        String word1;
        if(a <= word.length()){
            word1 = word.substring(0,a);
            if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            }
        }else{
            System.out.println(word);
        }
    }
} Main public static void main(String[] args) throws Exception {
        
        // 格納
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String word = scan.next();
        String word1;
        if(a <= word.length()){
            word1 = word.substring(0,a);
            if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            }
        }else{
            System.out.println(word);
        }
    } main {
        
        // 格納
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String word = scan.next();
        String word1;
        if(a <= word.length()){
            word1 = word.substring(0,a);
            if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            }
        }else{
            System.out.println(word);
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan String word = scan.next(); word scan.next() scan.next scan String word1; word1 if(a <= word.length()){
            word1 = word.substring(0,a);
            if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            }
        }else{
            System.out.println(word);
        } a <= word.length() a word.length() word.length word {
            word1 = word.substring(0,a);
            if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            }
        } word1 = word.substring(0,a) word1 word.substring(0,a) word.substring word 0 a if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            } word1.length() < word.length() word1.length() word1.length word1 word.length() word.length word {
                System.out.println(word1 + "...");
            } System.out.println(word1 + "...") System.out.println System.out System System.out word1 + "..." word1 "..." {
                word1 = word.substring(0,a);
                System.out.println(word1);
            } word1 = word.substring(0,a) word1 word.substring(0,a) word.substring word 0 a System.out.println(word1) System.out.println System.out System System.out word1 {
            System.out.println(word);
        } System.out.println(word) System.out.println System.out System System.out word String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        // 格納
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String word = scan.next();
        String word1;
        if(a <= word.length()){
            word1 = word.substring(0,a);
            if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            }
        }else{
            System.out.println(word);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        // 格納
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String word = scan.next();
        String word1;
        if(a <= word.length()){
            word1 = word.substring(0,a);
            if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            }
        }else{
            System.out.println(word);
        }
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        
        // 格納
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        String word = scan.next();
        String word1;
        if(a <= word.length()){
            word1 = word.substring(0,a);
            if(word1.length() < word.length()){
                System.out.println(word1 + "...");
            }else{
                word1 = word.substring(0,a);
                System.out.println(word1);
            }
        }else{
            System.out.println(word);
        }
    }
}
        