import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scn=new Scanner(System.in);
        int k=scn.nextInt();
        String s=scn.next();
        if(s.length()>k){
            System.out.println(s.substring(0,k)+"...");
        }else{
            System.out.println(s);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scn=new Scanner(System.in);
        int k=scn.nextInt();
        String s=scn.next();
        if(s.length()>k){
            System.out.println(s.substring(0,k)+"...");
        }else{
            System.out.println(s);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scn=new Scanner(System.in);
        int k=scn.nextInt();
        String s=scn.next();
        if(s.length()>k){
            System.out.println(s.substring(0,k)+"...");
        }else{
            System.out.println(s);
        }
    } main {
        Scanner scn=new Scanner(System.in);
        int k=scn.nextInt();
        String s=scn.next();
        if(s.length()>k){
            System.out.println(s.substring(0,k)+"...");
        }else{
            System.out.println(s);
        }
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int k=scn.nextInt(); k scn.nextInt() scn.nextInt scn String s=scn.next(); s scn.next() scn.next scn if(s.length()>k){
            System.out.println(s.substring(0,k)+"...");
        }else{
            System.out.println(s);
        } s.length()>k s.length() s.length s k {
            System.out.println(s.substring(0,k)+"...");
        } System.out.println(s.substring(0,k)+"...") System.out.println System.out System System.out s.substring(0,k)+"..." s.substring(0,k) s.substring s 0 k "..." {
            System.out.println(s);
        } System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scn=new Scanner(System.in);
        int k=scn.nextInt();
        String s=scn.next();
        if(s.length()>k){
            System.out.println(s.substring(0,k)+"...");
        }else{
            System.out.println(s);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scn=new Scanner(System.in);
        int k=scn.nextInt();
        String s=scn.next();
        if(s.length()>k){
            System.out.println(s.substring(0,k)+"...");
        }else{
            System.out.println(s);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scn=new Scanner(System.in);
        int k=scn.nextInt();
        String s=scn.next();
        if(s.length()>k){
            System.out.println(s.substring(0,k)+"...");
        }else{
            System.out.println(s);
        }
    }
}
