import java.util.*;
// 7
// nikoandsolstice
public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
       int t = sc.nextInt();
       String s = sc.next();
       String f = "";
       int length = s.length();
       
       for(int i = 0;i<t&& i<s.length();i++){
          f+= s.charAt(i); 
       }
    
  
   if(length>t){
       System.out.print(f+"...");
   }else
   System.out.print(f);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
       int t = sc.nextInt();
       String s = sc.next();
       String f = "";
       int length = s.length();
       
       for(int i = 0;i<t&& i<s.length();i++){
          f+= s.charAt(i); 
       }
    
  
   if(length>t){
       System.out.print(f+"...");
   }else
   System.out.print(f);
    }
} Main public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
       int t = sc.nextInt();
       String s = sc.next();
       String f = "";
       int length = s.length();
       
       for(int i = 0;i<t&& i<s.length();i++){
          f+= s.charAt(i); 
       }
    
  
   if(length>t){
       System.out.print(f+"...");
   }else
   System.out.print(f);
    } main {
        
        Scanner sc = new Scanner(System.in);
       int t = sc.nextInt();
       String s = sc.next();
       String f = "";
       int length = s.length();
       
       for(int i = 0;i<t&& i<s.length();i++){
          f+= s.charAt(i); 
       }
    
  
   if(length>t){
       System.out.print(f+"...");
   }else
   System.out.print(f);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc String f = ""; f "" int length = s.length(); length s.length() s.length s for(int i = 0;i<t&& i<s.length();i++){
          f+= s.charAt(i); 
       } int i = 0; int i = 0; i 0 i<t&& i<s.length() i<t i t i<s.length() i s.length() s.length s i++ i++ i {
          f+= s.charAt(i); 
       } {
          f+= s.charAt(i); 
       } f+= s.charAt(i) f s.charAt(i) s.charAt s i if(length>t){
       System.out.print(f+"...");
   }else
   System.out.print(f); length>t length t {
       System.out.print(f+"...");
   } System.out.print(f+"...") System.out.print System.out System System.out f+"..." f "..." System.out.print(f) System.out.print System.out System System.out f String args[] args public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
       int t = sc.nextInt();
       String s = sc.next();
       String f = "";
       int length = s.length();
       
       for(int i = 0;i<t&& i<s.length();i++){
          f+= s.charAt(i); 
       }
    
  
   if(length>t){
       System.out.print(f+"...");
   }else
   System.out.print(f);
    }
} public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
       int t = sc.nextInt();
       String s = sc.next();
       String f = "";
       int length = s.length();
       
       for(int i = 0;i<t&& i<s.length();i++){
          f+= s.charAt(i); 
       }
    
  
   if(length>t){
       System.out.print(f+"...");
   }else
   System.out.print(f);
    }
} Main
import java.util.*;
// 7
// nikoandsolstice
public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
       int t = sc.nextInt();
       String s = sc.next();
       String f = "";
       int length = s.length();
       
       for(int i = 0;i<t&& i<s.length();i++){
          f+= s.charAt(i); 
       }
    
  
   if(length>t){
       System.out.print(f+"...");
   }else
   System.out.print(f);
    }
}