import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K = sc.nextInt();
    String S = sc.next();
    StringBuilder SS = new StringBuilder(S);
    if (S.length() > K) {
      SS = SS.replace(K,S.length(),"...");
    } 
    System.out.println(SS);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K = sc.nextInt();
    String S = sc.next();
    StringBuilder SS = new StringBuilder(S);
    if (S.length() > K) {
      SS = SS.replace(K,S.length(),"...");
    } 
    System.out.println(SS);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K = sc.nextInt();
    String S = sc.next();
    StringBuilder SS = new StringBuilder(S);
    if (S.length() > K) {
      SS = SS.replace(K,S.length(),"...");
    } 
    System.out.println(SS);
  } main {
    Scanner sc = new Scanner(System.in);
    int K = sc.nextInt();
    String S = sc.next();
    StringBuilder SS = new StringBuilder(S);
    if (S.length() > K) {
      SS = SS.replace(K,S.length(),"...");
    } 
    System.out.println(SS);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc String S = sc.next(); S sc.next() sc.next sc StringBuilder SS = new StringBuilder(S); SS new StringBuilder(S) if (S.length() > K) {
      SS = SS.replace(K,S.length(),"...");
    } S.length() > K S.length() S.length S K {
      SS = SS.replace(K,S.length(),"...");
    } SS = SS.replace(K,S.length(),"...") SS SS.replace(K,S.length(),"...") SS.replace SS K S.length() S.length S "..." System.out.println(SS) System.out.println System.out System System.out SS String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K = sc.nextInt();
    String S = sc.next();
    StringBuilder SS = new StringBuilder(S);
    if (S.length() > K) {
      SS = SS.replace(K,S.length(),"...");
    } 
    System.out.println(SS);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K = sc.nextInt();
    String S = sc.next();
    StringBuilder SS = new StringBuilder(S);
    if (S.length() > K) {
      SS = SS.replace(K,S.length(),"...");
    } 
    System.out.println(SS);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K = sc.nextInt();
    String S = sc.next();
    StringBuilder SS = new StringBuilder(S);
    if (S.length() > K) {
      SS = SS.replace(K,S.length(),"...");
    } 
    System.out.println(SS);
  }
}