import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int k = Integer.parseInt(in.readLine());
    String s = in.readLine();
    
    if(s.length()<=k)
      System.out.println(s);
    else
      System.out.println(s.substring(0,k) + "...");
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int k = Integer.parseInt(in.readLine());
    String s = in.readLine();
    
    if(s.length()<=k)
      System.out.println(s);
    else
      System.out.println(s.substring(0,k) + "...");
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int k = Integer.parseInt(in.readLine());
    String s = in.readLine();
    
    if(s.length()<=k)
      System.out.println(s);
    else
      System.out.println(s.substring(0,k) + "...");
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int k = Integer.parseInt(in.readLine());
    String s = in.readLine();
    
    if(s.length()<=k)
      System.out.println(s);
    else
      System.out.println(s.substring(0,k) + "...");
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int k = Integer.parseInt(in.readLine()); k Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in String s = in.readLine(); s in.readLine() in.readLine in if(s.length()<=k)
      System.out.println(s);
    else
      System.out.println(s.substring(0,k) + "..."); s.length()<=k s.length() s.length s k System.out.println(s) System.out.println System.out System System.out s System.out.println(s.substring(0,k) + "...") System.out.println System.out System System.out s.substring(0,k) + "..." s.substring(0,k) s.substring s 0 k "..." String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int k = Integer.parseInt(in.readLine());
    String s = in.readLine();
    
    if(s.length()<=k)
      System.out.println(s);
    else
      System.out.println(s.substring(0,k) + "...");
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int k = Integer.parseInt(in.readLine());
    String s = in.readLine();
    
    if(s.length()<=k)
      System.out.println(s);
    else
      System.out.println(s.substring(0,k) + "...");
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int k = Integer.parseInt(in.readLine());
    String s = in.readLine();
    
    if(s.length()<=k)
      System.out.println(s);
    else
      System.out.println(s.substring(0,k) + "...");
  }
}