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