import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String str = sc.next();
    
    if (str.length() <= n)
      System.out.println(str);
    else {
      String temp = str.substring(0, n);
      System.out.println(temp + "...");
    }
    
  }
}
       import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String str = sc.next();
    
    if (str.length() <= n)
      System.out.println(str);
    else {
      String temp = str.substring(0, n);
      System.out.println(temp + "...");
    }
    
  }
} Main public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String str = sc.next();
    
    if (str.length() <= n)
      System.out.println(str);
    else {
      String temp = str.substring(0, n);
      System.out.println(temp + "...");
    }
    
  } main {
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String str = sc.next();
    
    if (str.length() <= n)
      System.out.println(str);
    else {
      String temp = str.substring(0, n);
      System.out.println(temp + "...");
    }
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String str = sc.next(); str sc.next() sc.next sc if (str.length() <= n)
      System.out.println(str);
    else {
      String temp = str.substring(0, n);
      System.out.println(temp + "...");
    } str.length() <= n str.length() str.length str n System.out.println(str) System.out.println System.out System System.out str {
      String temp = str.substring(0, n);
      System.out.println(temp + "...");
    } String temp = str.substring(0, n); temp str.substring(0, n) str.substring str 0 n System.out.println(temp + "...") System.out.println System.out System System.out temp + "..." temp "..." String[] args args public class Main {
  public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String str = sc.next();
    
    if (str.length() <= n)
      System.out.println(str);
    else {
      String temp = str.substring(0, n);
      System.out.println(temp + "...");
    }
    
  }
} public class Main {
  public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String str = sc.next();
    
    if (str.length() <= n)
      System.out.println(str);
    else {
      String temp = str.substring(0, n);
      System.out.println(temp + "...");
    }
    
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String str = sc.next();
    
    if (str.length() <= n)
      System.out.println(str);
    else {
      String temp = str.substring(0, n);
      System.out.println(temp + "...");
    }
    
  }
}
      