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


  }
}

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


  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    String A = sc.next();
    if(N < A.length()){
      String tmpS = A.substring(0, N) + "...";
      System.out.println(tmpS);
    }else{
      System.out.println(A);
    }


  } main {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    String A = sc.next();
    if(N < A.length()){
      String tmpS = A.substring(0, N) + "...";
      System.out.println(tmpS);
    }else{
      System.out.println(A);
    }


  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc String A = sc.next(); A sc.next() sc.next sc if(N < A.length()){
      String tmpS = A.substring(0, N) + "...";
      System.out.println(tmpS);
    }else{
      System.out.println(A);
    } N < A.length() N A.length() A.length A {
      String tmpS = A.substring(0, N) + "...";
      System.out.println(tmpS);
    } String tmpS = A.substring(0, N) + "..."; tmpS A.substring(0, N) + "..." A.substring(0, N) A.substring A 0 N "..." System.out.println(tmpS) System.out.println System.out System System.out tmpS {
      System.out.println(A);
    } System.out.println(A) System.out.println System.out System System.out A String[] args args public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    String A = sc.next();
    if(N < A.length()){
      String tmpS = A.substring(0, N) + "...";
      System.out.println(tmpS);
    }else{
      System.out.println(A);
    }


  }
} public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    String A = sc.next();
    if(N < A.length()){
      String tmpS = A.substring(0, N) + "...";
      System.out.println(tmpS);
    }else{
      System.out.println(A);
    }


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


  }
}


