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(K<S.length()){
        System.out.print(S.substring(0,K)+"...");
        }
        else if (K>=S.length()){
        System.out.print(S);
        }
      
    }
} 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(K<S.length()){
        System.out.print(S.substring(0,K)+"...");
        }
        else if (K>=S.length()){
        System.out.print(S);
        }
      
    }
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
      
      int K = sc.nextInt();
      String S = sc.next();

        if(K<S.length()){
        System.out.print(S.substring(0,K)+"...");
        }
        else if (K>=S.length()){
        System.out.print(S);
        }
      
    } main {

		Scanner sc = new Scanner(System.in);
      
      int K = sc.nextInt();
      String S = sc.next();

        if(K<S.length()){
        System.out.print(S.substring(0,K)+"...");
        }
        else if (K>=S.length()){
        System.out.print(S);
        }
      
    } 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(K<S.length()){
        System.out.print(S.substring(0,K)+"...");
        }
        else if (K>=S.length()){
        System.out.print(S);
        } K<S.length() K S.length() S.length S {
        System.out.print(S.substring(0,K)+"...");
        } System.out.print(S.substring(0,K)+"...") System.out.print System.out System System.out S.substring(0,K)+"..." S.substring(0,K) S.substring S 0 K "..." if (K>=S.length()){
        System.out.print(S);
        } K>=S.length() K S.length() S.length S {
        System.out.print(S);
        } System.out.print(S) System.out.print 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 K = sc.nextInt();
      String S = sc.next();

        if(K<S.length()){
        System.out.print(S.substring(0,K)+"...");
        }
        else if (K>=S.length()){
        System.out.print(S);
        }
      
    }
} public class Main {

    public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
      
      int K = sc.nextInt();
      String S = sc.next();

        if(K<S.length()){
        System.out.print(S.substring(0,K)+"...");
        }
        else if (K>=S.length()){
        System.out.print(S);
        }
      
    }
} 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(K<S.length()){
        System.out.print(S.substring(0,K)+"...");
        }
        else if (K>=S.length()){
        System.out.print(S);
        }
      
    }
}
