import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      int k = scan.nextInt();
      String s = scan.next();
      if (k>=s.length()){
        System.out.println(s);
      }
      else{
        for (int i=0;i<k;i++){
          System.out.print(s.charAt(i));
        }
        System.out.println("...");
      }

  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      int k = scan.nextInt();
      String s = scan.next();
      if (k>=s.length()){
        System.out.println(s);
      }
      else{
        for (int i=0;i<k;i++){
          System.out.print(s.charAt(i));
        }
        System.out.println("...");
      }

  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      int k = scan.nextInt();
      String s = scan.next();
      if (k>=s.length()){
        System.out.println(s);
      }
      else{
        for (int i=0;i<k;i++){
          System.out.print(s.charAt(i));
        }
        System.out.println("...");
      }

  } main {
    Scanner scan = new Scanner(System.in);
      int k = scan.nextInt();
      String s = scan.next();
      if (k>=s.length()){
        System.out.println(s);
      }
      else{
        for (int i=0;i<k;i++){
          System.out.print(s.charAt(i));
        }
        System.out.println("...");
      }

  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan String s = scan.next(); s scan.next() scan.next scan if (k>=s.length()){
        System.out.println(s);
      }
      else{
        for (int i=0;i<k;i++){
          System.out.print(s.charAt(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 {
        for (int i=0;i<k;i++){
          System.out.print(s.charAt(i));
        }
        System.out.println("...");
      } for (int i=0;i<k;i++){
          System.out.print(s.charAt(i));
        } int i=0; int i=0; i 0 i<k i k i++ i++ i {
          System.out.print(s.charAt(i));
        } {
          System.out.print(s.charAt(i));
        } System.out.print(s.charAt(i)) System.out.print System.out System System.out s.charAt(i) s.charAt s 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 scan = new Scanner(System.in);
      int k = scan.nextInt();
      String s = scan.next();
      if (k>=s.length()){
        System.out.println(s);
      }
      else{
        for (int i=0;i<k;i++){
          System.out.print(s.charAt(i));
        }
        System.out.println("...");
      }

  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      int k = scan.nextInt();
      String s = scan.next();
      if (k>=s.length()){
        System.out.println(s);
      }
      else{
        for (int i=0;i<k;i++){
          System.out.print(s.charAt(i));
        }
        System.out.println("...");
      }

  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      int k = scan.nextInt();
      String s = scan.next();
      if (k>=s.length()){
        System.out.println(s);
      }
      else{
        for (int i=0;i<k;i++){
          System.out.print(s.charAt(i));
        }
        System.out.println("...");
      }

  }
}
