import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.HashSet;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K=sc.nextInt();
    String S=sc.next();
    String Ss[]=S.split("");
    if(Ss.length<=K){
      System.out.println(S);
    }else{
      for(int i=0;i<K;i++){
        System.out.print(Ss[i]);

      }
       System.out.print("...");
    }




  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.stream.Collectors; Collectors java.util.stream import java.util.HashSet; HashSet java.util class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K=sc.nextInt();
    String S=sc.next();
    String Ss[]=S.split("");
    if(Ss.length<=K){
      System.out.println(S);
    }else{
      for(int i=0;i<K;i++){
        System.out.print(Ss[i]);

      }
       System.out.print("...");
    }




  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K=sc.nextInt();
    String S=sc.next();
    String Ss[]=S.split("");
    if(Ss.length<=K){
      System.out.println(S);
    }else{
      for(int i=0;i<K;i++){
        System.out.print(Ss[i]);

      }
       System.out.print("...");
    }




  } main {
    Scanner sc = new Scanner(System.in);
    int K=sc.nextInt();
    String S=sc.next();
    String Ss[]=S.split("");
    if(Ss.length<=K){
      System.out.println(S);
    }else{
      for(int i=0;i<K;i++){
        System.out.print(Ss[i]);

      }
       System.out.print("...");
    }




  } 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 String Ss[]=S.split(""); Ss S.split("") S.split S "" if(Ss.length<=K){
      System.out.println(S);
    }else{
      for(int i=0;i<K;i++){
        System.out.print(Ss[i]);

      }
       System.out.print("...");
    } Ss.length<=K Ss.length Ss Ss.length K {
      System.out.println(S);
    } System.out.println(S) System.out.println System.out System System.out S {
      for(int i=0;i<K;i++){
        System.out.print(Ss[i]);

      }
       System.out.print("...");
    } for(int i=0;i<K;i++){
        System.out.print(Ss[i]);

      } int i=0; int i=0; i 0 i<K i K i++ i++ i {
        System.out.print(Ss[i]);

      } {
        System.out.print(Ss[i]);

      } System.out.print(Ss[i]) System.out.print System.out System System.out Ss[i] Ss i System.out.print("...") System.out.print System.out System System.out "..." String[] args args
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.HashSet;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int K=sc.nextInt();
    String S=sc.next();
    String Ss[]=S.split("");
    if(Ss.length<=K){
      System.out.println(S);
    }else{
      for(int i=0;i<K;i++){
        System.out.print(Ss[i]);

      }
       System.out.print("...");
    }




  }
}
