import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long k =sc.nextLong();
    String s = sc.next();
    long len = s.length();
    if(len<=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 class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long k =sc.nextLong();
    String s = sc.next();
    long len = s.length();
    if(len<=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){
    Scanner sc = new Scanner(System.in);
    long k =sc.nextLong();
    String s = sc.next();
    long len = s.length();
    if(len<=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);
    long k =sc.nextLong();
    String s = sc.next();
    long len = s.length();
    if(len<=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) long k =sc.nextLong(); k sc.nextLong() sc.nextLong sc String s = sc.next(); s sc.next() sc.next sc long len = s.length(); len s.length() s.length s if(len<=k)
      System.out.println(s);
    else{
     for(int i=0;i<k;i++)
       System.out.print(s.charAt(i));
       System.out.print("...");
    } len<=k len k 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 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
import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long k =sc.nextLong();
    String s = sc.next();
    long len = s.length();
    if(len<=k)
      System.out.println(s);
    else{
     for(int i=0;i<k;i++)
       System.out.print(s.charAt(i));
       System.out.print("...");
    }
   
  }
}