import java.util.*;
class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    String s = sc.next();
    String r = s.replaceAll("^(.{"+k+"}).+$","$1...");
    System.out.println(r);
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    String s = sc.next();
    String r = s.replaceAll("^(.{"+k+"}).+$","$1...");
    System.out.println(r);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    String s = sc.next();
    String r = s.replaceAll("^(.{"+k+"}).+$","$1...");
    System.out.println(r);
  } main {
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    String s = sc.next();
    String r = s.replaceAll("^(.{"+k+"}).+$","$1...");
    System.out.println(r);
  } 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 String r = s.replaceAll("^(.{"+k+"}).+$","$1..."); r s.replaceAll("^(.{"+k+"}).+$","$1...") s.replaceAll s "^(.{"+k+"}).+$" "^(.{"+k+"}).+$" "^(.{" k "}).+$" "$1..." System.out.println(r) System.out.println System.out System System.out r String[] args args
import java.util.*;
class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    String s = sc.next();
    String r = s.replaceAll("^(.{"+k+"}).+$","$1...");
    System.out.println(r);
  }
}