import java.util.*;

class Main {
  static Scanner sc = new Scanner(System.in);

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

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

class Main {
  static Scanner sc = new Scanner(System.in);

  public static void main(String[] args) {
    int k = sc.nextInt();
    String s = new String(sc.next());
    int num = s.length();
    if (num <= k) {
      System.out.println(s);
    } else {
      String a = s.substring(0, k);
      System.out.println(a + "...");
    }
  }
}