import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int k = scanner.nextInt();
      String s = scanner.next();

      if( s.length() <= k ) {
          System.out.println( s );
      }else if( s.length() > k ) {
          String sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      }


      scanner.close();
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int k = scanner.nextInt();
      String s = scanner.next();

      if( s.length() <= k ) {
          System.out.println( s );
      }else if( s.length() > k ) {
          String sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      }


      scanner.close();
    }

} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int k = scanner.nextInt();
      String s = scanner.next();

      if( s.length() <= k ) {
          System.out.println( s );
      }else if( s.length() > k ) {
          String sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      }


      scanner.close();
    } main {
        Scanner scanner = new Scanner(System.in);

        int k = scanner.nextInt();
      String s = scanner.next();

      if( s.length() <= k ) {
          System.out.println( s );
      }else if( s.length() > k ) {
          String sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      }


      scanner.close();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int k = scanner.nextInt(); k scanner.nextInt() scanner.nextInt scanner String s = scanner.next(); s scanner.next() scanner.next scanner if( s.length() <= k ) {
          System.out.println( s );
      }else if( s.length() > k ) {
          String sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      } 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 sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      } s.length() > k s.length() s.length s k {
          String sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      } String sk = s.substring( 0 , k ); sk s.substring( 0 , k ) s.substring s 0 k System.out.println( sk + "...") System.out.println System.out System System.out sk + "..." sk "..." scanner.close() scanner.close scanner String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int k = scanner.nextInt();
      String s = scanner.next();

      if( s.length() <= k ) {
          System.out.println( s );
      }else if( s.length() > k ) {
          String sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      }


      scanner.close();
    }

} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int k = scanner.nextInt();
      String s = scanner.next();

      if( s.length() <= k ) {
          System.out.println( s );
      }else if( s.length() > k ) {
          String sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      }


      scanner.close();
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int k = scanner.nextInt();
      String s = scanner.next();

      if( s.length() <= k ) {
          System.out.println( s );
      }else if( s.length() > k ) {
          String sk = s.substring( 0 , k );
          System.out.println( sk + "...");
      }


      scanner.close();
    }

}