import java.util.*;
public class Main{
    public static void main(String args[]) {
    Scanner obj = new Scanner(System.in);   
    int i;
    int n=obj.nextInt();
    String s=obj.next();
   	String str="";
   	char a[]=s.toCharArray();
    for(i=0;i<s.length();i++)
    {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    }
    System.out.print(str);
    
}
} import java.util.*; util.* java public class Main{
    public static void main(String args[]) {
    Scanner obj = new Scanner(System.in);   
    int i;
    int n=obj.nextInt();
    String s=obj.next();
   	String str="";
   	char a[]=s.toCharArray();
    for(i=0;i<s.length();i++)
    {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    }
    System.out.print(str);
    
}
} Main public static void main(String args[]) {
    Scanner obj = new Scanner(System.in);   
    int i;
    int n=obj.nextInt();
    String s=obj.next();
   	String str="";
   	char a[]=s.toCharArray();
    for(i=0;i<s.length();i++)
    {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    }
    System.out.print(str);
    
} main {
    Scanner obj = new Scanner(System.in);   
    int i;
    int n=obj.nextInt();
    String s=obj.next();
   	String str="";
   	char a[]=s.toCharArray();
    for(i=0;i<s.length();i++)
    {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    }
    System.out.print(str);
    
} Scanner obj = new Scanner(System.in); obj new Scanner(System.in) int i; i int n=obj.nextInt(); n obj.nextInt() obj.nextInt obj String s=obj.next(); s obj.next() obj.next obj String str=""; str "" char a[]=s.toCharArray(); a s.toCharArray() s.toCharArray s for(i=0;i<s.length();i++)
    {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    } i=0; i=0 i 0 i<s.length() i s.length() s.length s i++ i++ i {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    } {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    } if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        } i==n i n {
            str=str+"...";
            break;
        } str=str+"..." str str+"..." str "..." break; {
            str=str+s.charAt(i);
        } str=str+s.charAt(i) str str+s.charAt(i) str s.charAt(i) s.charAt s i System.out.print(str) System.out.print System.out System System.out str String args[] args public class Main{
    public static void main(String args[]) {
    Scanner obj = new Scanner(System.in);   
    int i;
    int n=obj.nextInt();
    String s=obj.next();
   	String str="";
   	char a[]=s.toCharArray();
    for(i=0;i<s.length();i++)
    {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    }
    System.out.print(str);
    
}
} public class Main{
    public static void main(String args[]) {
    Scanner obj = new Scanner(System.in);   
    int i;
    int n=obj.nextInt();
    String s=obj.next();
   	String str="";
   	char a[]=s.toCharArray();
    for(i=0;i<s.length();i++)
    {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    }
    System.out.print(str);
    
}
} Main
import java.util.*;
public class Main{
    public static void main(String args[]) {
    Scanner obj = new Scanner(System.in);   
    int i;
    int n=obj.nextInt();
    String s=obj.next();
   	String str="";
   	char a[]=s.toCharArray();
    for(i=0;i<s.length();i++)
    {
        if(i==n)
        {
            str=str+"...";
            break;
        }
        else
        {
            str=str+s.charAt(i);
        }
    }
    System.out.print(str);
    
}
}