import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int lim = sc.nextInt();
        String str = sc.next();
        sc.close();
        String result;

        if(str.length()>lim) {
            result = str.substring(0,lim);
            System.out.println(result+"...");
        } else {
            result = str;
            System.out.println(result);
        }


    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int lim = sc.nextInt();
        String str = sc.next();
        sc.close();
        String result;

        if(str.length()>lim) {
            result = str.substring(0,lim);
            System.out.println(result+"...");
        } else {
            result = str;
            System.out.println(result);
        }


    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int lim = sc.nextInt();
        String str = sc.next();
        sc.close();
        String result;

        if(str.length()>lim) {
            result = str.substring(0,lim);
            System.out.println(result+"...");
        } else {
            result = str;
            System.out.println(result);
        }


    } main {
        Scanner sc = new Scanner(System.in);
        int lim = sc.nextInt();
        String str = sc.next();
        sc.close();
        String result;

        if(str.length()>lim) {
            result = str.substring(0,lim);
            System.out.println(result+"...");
        } else {
            result = str;
            System.out.println(result);
        }


    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int lim = sc.nextInt(); lim sc.nextInt() sc.nextInt sc String str = sc.next(); str sc.next() sc.next sc sc.close() sc.close sc String result; result if(str.length()>lim) {
            result = str.substring(0,lim);
            System.out.println(result+"...");
        } else {
            result = str;
            System.out.println(result);
        } str.length()>lim str.length() str.length str lim {
            result = str.substring(0,lim);
            System.out.println(result+"...");
        } result = str.substring(0,lim) result str.substring(0,lim) str.substring str 0 lim System.out.println(result+"...") System.out.println System.out System System.out result+"..." result "..." {
            result = str;
            System.out.println(result);
        } result = str result str System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int lim = sc.nextInt();
        String str = sc.next();
        sc.close();
        String result;

        if(str.length()>lim) {
            result = str.substring(0,lim);
            System.out.println(result+"...");
        } else {
            result = str;
            System.out.println(result);
        }


    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int lim = sc.nextInt();
        String str = sc.next();
        sc.close();
        String result;

        if(str.length()>lim) {
            result = str.substring(0,lim);
            System.out.println(result+"...");
        } else {
            result = str;
            System.out.println(result);
        }


    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int lim = sc.nextInt();
        String str = sc.next();
        sc.close();
        String result;

        if(str.length()>lim) {
            result = str.substring(0,lim);
            System.out.println(result+"...");
        } else {
            result = str;
            System.out.println(result);
        }


    }
}