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