import java.io.*;
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;

public class Main{

    public static void main(String[] args){
        //START

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

        //System.out.println(S.length());

        if(K>=S.length()){
            System.out.println(S);
        }else{
            String[] strArray=S.split("");

            int i=0;

            for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            }
        }

        //END

    }
}
 import java.io.*; io.* java import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.ArrayList; ArrayList java.util public class Main{

    public static void main(String[] args){
        //START

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

        //System.out.println(S.length());

        if(K>=S.length()){
            System.out.println(S);
        }else{
            String[] strArray=S.split("");

            int i=0;

            for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            }
        }

        //END

    }
} Main public static void main(String[] args){
        //START

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

        //System.out.println(S.length());

        if(K>=S.length()){
            System.out.println(S);
        }else{
            String[] strArray=S.split("");

            int i=0;

            for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            }
        }

        //END

    } main {
        //START

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

        //System.out.println(S.length());

        if(K>=S.length()){
            System.out.println(S);
        }else{
            String[] strArray=S.split("");

            int i=0;

            for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            }
        }

        //END

    } 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.println(S);
        }else{
            String[] strArray=S.split("");

            int i=0;

            for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            }
        } K>=S.length() K S.length() S.length S {
            System.out.println(S);
        } System.out.println(S) System.out.println System.out System System.out S {
            String[] strArray=S.split("");

            int i=0;

            for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            }
        } String[] strArray=S.split(""); strArray S.split("") S.split S "" int i=0; i 0 for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            } i=0; i=0 i 0 i<S.length() i S.length() S.length S i++ i++ i {
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            } {
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            } if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                } i<K i K {
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                } System.out.print(strArray[i]) System.out.print System.out System System.out strArray[i] strArray i {
                    System.out.print("...");
                    break;
                } System.out.print("...") System.out.print System.out System System.out "..." break; String[] args args public class Main{

    public static void main(String[] args){
        //START

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

        //System.out.println(S.length());

        if(K>=S.length()){
            System.out.println(S);
        }else{
            String[] strArray=S.split("");

            int i=0;

            for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            }
        }

        //END

    }
} public class Main{

    public static void main(String[] args){
        //START

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

        //System.out.println(S.length());

        if(K>=S.length()){
            System.out.println(S);
        }else{
            String[] strArray=S.split("");

            int i=0;

            for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            }
        }

        //END

    }
} Main
import java.io.*;
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;

public class Main{

    public static void main(String[] args){
        //START

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

        //System.out.println(S.length());

        if(K>=S.length()){
            System.out.println(S);
        }else{
            String[] strArray=S.split("");

            int i=0;

            for(i=0;i<S.length();i++){
                if(i<K){
                    //System.out.print(i);
                    System.out.print(strArray[i]);
                }else{
                    System.out.print("...");
                    break;
                }
            }
        }

        //END

    }
}

