import java.util.Scanner;
class Main {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
   	int k;
    k = scan.nextInt();
   	String s;
    s = scan.next();
    int num = s.length();
    if (k>=num)
      System.out.println(s);
    else{
      String str= s.substring(0,k);
      System.out.println(str+"...");
    }
  }         
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
   	int k;
    k = scan.nextInt();
   	String s;
    s = scan.next();
    int num = s.length();
    if (k>=num)
      System.out.println(s);
    else{
      String str= s.substring(0,k);
      System.out.println(str+"...");
    }
  }         
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
   	int k;
    k = scan.nextInt();
   	String s;
    s = scan.next();
    int num = s.length();
    if (k>=num)
      System.out.println(s);
    else{
      String str= s.substring(0,k);
      System.out.println(str+"...");
    }
  } main {
    Scanner scan = new Scanner(System.in);
   	int k;
    k = scan.nextInt();
   	String s;
    s = scan.next();
    int num = s.length();
    if (k>=num)
      System.out.println(s);
    else{
      String str= s.substring(0,k);
      System.out.println(str+"...");
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int k; k k = scan.nextInt() k scan.nextInt() scan.nextInt scan String s; s s = scan.next() s scan.next() scan.next scan int num = s.length(); num s.length() s.length s if (k>=num)
      System.out.println(s);
    else{
      String str= s.substring(0,k);
      System.out.println(str+"...");
    } k>=num k num System.out.println(s) System.out.println System.out System System.out s {
      String str= s.substring(0,k);
      System.out.println(str+"...");
    } String str= s.substring(0,k); str s.substring(0,k) s.substring s 0 k System.out.println(str+"...") System.out.println System.out System System.out str+"..." str "..." String[] args args
import java.util.Scanner;
class Main {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
   	int k;
    k = scan.nextInt();
   	String s;
    s = scan.next();
    int num = s.length();
    if (k>=num)
      System.out.println(s);
    else{
      String str= s.substring(0,k);
      System.out.println(str+"...");
    }
  }         
}