
import java.util.*;


public class Main {


    public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);
       int n=sc.nextInt();
       String s=sc.next();
       if(s.length()>n)
       {
           for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           }
           System.out.print("...");
       }
       else
       System.out.print(s);

}
} import java.util.*; util.* java public class Main {


    public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);
       int n=sc.nextInt();
       String s=sc.next();
       if(s.length()>n)
       {
           for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           }
           System.out.print("...");
       }
       else
       System.out.print(s);

}
} Main public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);
       int n=sc.nextInt();
       String s=sc.next();
       if(s.length()>n)
       {
           for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           }
           System.out.print("...");
       }
       else
       System.out.print(s);

} main {
       Scanner sc=new Scanner(System.in);
       int n=sc.nextInt();
       String s=sc.next();
       if(s.length()>n)
       {
           for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           }
           System.out.print("...");
       }
       else
       System.out.print(s);

} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc String s=sc.next(); s sc.next() sc.next sc if(s.length()>n)
       {
           for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           }
           System.out.print("...");
       }
       else
       System.out.print(s); s.length()>n s.length() s.length s n {
           for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           }
           System.out.print("...");
       } for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           } int i=0; int i=0; i 0 i<n i n 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 "..." System.out.print(s) System.out.print System.out System System.out s String[] args args public class Main {


    public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);
       int n=sc.nextInt();
       String s=sc.next();
       if(s.length()>n)
       {
           for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           }
           System.out.print("...");
       }
       else
       System.out.print(s);

}
} public class Main {


    public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);
       int n=sc.nextInt();
       String s=sc.next();
       if(s.length()>n)
       {
           for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           }
           System.out.print("...");
       }
       else
       System.out.print(s);

}
} Main

import java.util.*;


public class Main {


    public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);
       int n=sc.nextInt();
       String s=sc.next();
       if(s.length()>n)
       {
           for(int i=0;i<n;i++)
           {
               System.out.print(s.charAt(i));

           }
           System.out.print("...");
       }
       else
       System.out.print(s);

}
}
