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();
    char[] c = s.toCharArray();
    StringBuilder val = new StringBuilder();

    if(k>=c.length){
      System.out.println(s);
    }else{
      for(int i=0; i<k; i++){
        System.out.print(c[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();
    char[] c = s.toCharArray();
    StringBuilder val = new StringBuilder();

    if(k>=c.length){
      System.out.println(s);
    }else{
      for(int i=0; i<k; i++){
        System.out.print(c[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();
    char[] c = s.toCharArray();
    StringBuilder val = new StringBuilder();

    if(k>=c.length){
      System.out.println(s);
    }else{
      for(int i=0; i<k; i++){
        System.out.print(c[i]);
      }
      System.out.println("...");
    }


  } main {
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    String s = sc.next();
    char[] c = s.toCharArray();
    StringBuilder val = new StringBuilder();

    if(k>=c.length){
      System.out.println(s);
    }else{
      for(int i=0; i<k; i++){
        System.out.print(c[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 char[] c = s.toCharArray(); c s.toCharArray() s.toCharArray s StringBuilder val = new StringBuilder(); val new StringBuilder() if(k>=c.length){
      System.out.println(s);
    }else{
      for(int i=0; i<k; i++){
        System.out.print(c[i]);
      }
      System.out.println("...");
    } k>=c.length k c.length c c.length {
      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(c[i]);
      }
      System.out.println("...");
    } for(int i=0; i<k; i++){
        System.out.print(c[i]);
      } int i=0; int i=0; i 0 i<k i k i++ i++ i {
        System.out.print(c[i]);
      } {
        System.out.print(c[i]);
      } System.out.print(c[i]) System.out.print System.out System System.out c[i] c 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();
    char[] c = s.toCharArray();
    StringBuilder val = new StringBuilder();

    if(k>=c.length){
      System.out.println(s);
    }else{
      for(int i=0; i<k; i++){
        System.out.print(c[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();
    char[] c = s.toCharArray();
    StringBuilder val = new StringBuilder();

    if(k>=c.length){
      System.out.println(s);
    }else{
      for(int i=0; i<k; i++){
        System.out.print(c[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();
    char[] c = s.toCharArray();
    StringBuilder val = new StringBuilder();

    if(k>=c.length){
      System.out.println(s);
    }else{
      for(int i=0; i<k; i++){
        System.out.print(c[i]);
      }
      System.out.println("...");
    }


  }
}