import java.util.Scanner;
import java.util.ArrayList;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String k = sc.nextLine();
    int ik = Integer.parseInt(k);
    String s = sc.nextLine();

    if(s.length() > ik){
        s = s.substring(0, ik);
        s = s+"...";
    }
    System.out.println(s);
  }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String k = sc.nextLine();
    int ik = Integer.parseInt(k);
    String s = sc.nextLine();

    if(s.length() > ik){
        s = s.substring(0, ik);
        s = s+"...";
    }
    System.out.println(s);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String k = sc.nextLine();
    int ik = Integer.parseInt(k);
    String s = sc.nextLine();

    if(s.length() > ik){
        s = s.substring(0, ik);
        s = s+"...";
    }
    System.out.println(s);
  } main {
    Scanner sc = new Scanner(System.in);
    String k = sc.nextLine();
    int ik = Integer.parseInt(k);
    String s = sc.nextLine();

    if(s.length() > ik){
        s = s.substring(0, ik);
        s = s+"...";
    }
    System.out.println(s);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String k = sc.nextLine(); k sc.nextLine() sc.nextLine sc int ik = Integer.parseInt(k); ik Integer.parseInt(k) Integer.parseInt Integer k String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc if(s.length() > ik){
        s = s.substring(0, ik);
        s = s+"...";
    } s.length() > ik s.length() s.length s ik {
        s = s.substring(0, ik);
        s = s+"...";
    } s = s.substring(0, ik) s s.substring(0, ik) s.substring s 0 ik s = s+"..." s s+"..." s "..." System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String k = sc.nextLine();
    int ik = Integer.parseInt(k);
    String s = sc.nextLine();

    if(s.length() > ik){
        s = s.substring(0, ik);
        s = s+"...";
    }
    System.out.println(s);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String k = sc.nextLine();
    int ik = Integer.parseInt(k);
    String s = sc.nextLine();

    if(s.length() > ik){
        s = s.substring(0, ik);
        s = s+"...";
    }
    System.out.println(s);
  }
} Main
import java.util.Scanner;
import java.util.ArrayList;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String k = sc.nextLine();
    int ik = Integer.parseInt(k);
    String s = sc.nextLine();

    if(s.length() > ik){
        s = s.substring(0, ik);
        s = s+"...";
    }
    System.out.println(s);
  }
}