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