import java.util.*;
public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str = sc.next();
    if(n >= str.length()){
      System.out.println(str);
    }
    else{
      String s = str.substring(0,n);
      s += "...";
      System.out.println(s);
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str = sc.next();
    if(n >= str.length()){
      System.out.println(str);
    }
    else{
      String s = str.substring(0,n);
      s += "...";
      System.out.println(s);
    }
  }
} Main public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str = sc.next();
    if(n >= str.length()){
      System.out.println(str);
    }
    else{
      String s = str.substring(0,n);
      s += "...";
      System.out.println(s);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str = sc.next();
    if(n >= str.length()){
      System.out.println(str);
    }
    else{
      String s = str.substring(0,n);
      s += "...";
      System.out.println(s);
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String str = sc.next(); str sc.next() sc.next sc if(n >= str.length()){
      System.out.println(str);
    }
    else{
      String s = str.substring(0,n);
      s += "...";
      System.out.println(s);
    } n >= str.length() n str.length() str.length str {
      System.out.println(str);
    } System.out.println(str) System.out.println System.out System System.out str {
      String s = str.substring(0,n);
      s += "...";
      System.out.println(s);
    } String s = str.substring(0,n); s str.substring(0,n) str.substring str 0 n 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);
    int n = sc.nextInt();
    String str = sc.next();
    if(n >= str.length()){
      System.out.println(str);
    }
    else{
      String s = str.substring(0,n);
      s += "...";
      System.out.println(s);
    }
  }
} public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str = sc.next();
    if(n >= str.length()){
      System.out.println(str);
    }
    else{
      String s = str.substring(0,n);
      s += "...";
      System.out.println(s);
    }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str = sc.next();
    if(n >= str.length()){
      System.out.println(str);
    }
    else{
      String s = str.substring(0,n);
      s += "...";
      System.out.println(s);
    }
  }
}