import java.util.Scanner;

public class Main{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        String x="";
        a=sc.nextInt();


        x=sc.next();

        if(x.length()>a){
            x=x.substring(0,a)+"...";


        }
        System.out.print(x);



    }

}


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

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        String x="";
        a=sc.nextInt();


        x=sc.next();

        if(x.length()>a){
            x=x.substring(0,a)+"...";


        }
        System.out.print(x);



    }

} Main public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        String x="";
        a=sc.nextInt();


        x=sc.next();

        if(x.length()>a){
            x=x.substring(0,a)+"...";


        }
        System.out.print(x);



    } main {
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        String x="";
        a=sc.nextInt();


        x=sc.next();

        if(x.length()>a){
            x=x.substring(0,a)+"...";


        }
        System.out.print(x);



    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a=0; a 0 int b=0; b 0 int c=0; c 0 int d=0; d 0 int score=0; score 0 String x=""; x "" a=sc.nextInt() a sc.nextInt() sc.nextInt sc x=sc.next() x sc.next() sc.next sc if(x.length()>a){
            x=x.substring(0,a)+"...";


        } x.length()>a x.length() x.length x a {
            x=x.substring(0,a)+"...";


        } x=x.substring(0,a)+"..." x x.substring(0,a)+"..." x.substring(0,a) x.substring x 0 a "..." System.out.print(x) System.out.print System.out System System.out x String []args args public class Main{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        String x="";
        a=sc.nextInt();


        x=sc.next();

        if(x.length()>a){
            x=x.substring(0,a)+"...";


        }
        System.out.print(x);



    }

} public class Main{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        String x="";
        a=sc.nextInt();


        x=sc.next();

        if(x.length()>a){
            x=x.substring(0,a)+"...";


        }
        System.out.print(x);



    }

} Main
import java.util.Scanner;

public class Main{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        String x="";
        a=sc.nextInt();


        x=sc.next();

        if(x.length()>a){
            x=x.substring(0,a)+"...";


        }
        System.out.print(x);



    }

}



