import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        // int  a = d % 10;

        // if(a == 3) {
        //     System.out.println("bon");
        // } else if( a== 0 || a == 1 || a == 6 || a == 8) {
        //     System.out.println("pon");
        // } else {
        //     System.out.println("hon");
        // }
        String str = s.next();
        char c[] = str.toCharArray();
        if(c.length>d) {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            }
            sb.append("...");
            System.out.println(sb.toString());
        } else {
            System.out.println(str);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        // int  a = d % 10;

        // if(a == 3) {
        //     System.out.println("bon");
        // } else if( a== 0 || a == 1 || a == 6 || a == 8) {
        //     System.out.println("pon");
        // } else {
        //     System.out.println("hon");
        // }
        String str = s.next();
        char c[] = str.toCharArray();
        if(c.length>d) {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            }
            sb.append("...");
            System.out.println(sb.toString());
        } else {
            System.out.println(str);
        }
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        // int  a = d % 10;

        // if(a == 3) {
        //     System.out.println("bon");
        // } else if( a== 0 || a == 1 || a == 6 || a == 8) {
        //     System.out.println("pon");
        // } else {
        //     System.out.println("hon");
        // }
        String str = s.next();
        char c[] = str.toCharArray();
        if(c.length>d) {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            }
            sb.append("...");
            System.out.println(sb.toString());
        } else {
            System.out.println(str);
        }
    } main {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        // int  a = d % 10;

        // if(a == 3) {
        //     System.out.println("bon");
        // } else if( a== 0 || a == 1 || a == 6 || a == 8) {
        //     System.out.println("pon");
        // } else {
        //     System.out.println("hon");
        // }
        String str = s.next();
        char c[] = str.toCharArray();
        if(c.length>d) {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            }
            sb.append("...");
            System.out.println(sb.toString());
        } else {
            System.out.println(str);
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int d = s.nextInt(); d s.nextInt() s.nextInt s String str = s.next(); str s.next() s.next s char c[] = str.toCharArray(); c str.toCharArray() str.toCharArray str if(c.length>d) {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            }
            sb.append("...");
            System.out.println(sb.toString());
        } else {
            System.out.println(str);
        } c.length>d c.length c c.length d {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            }
            sb.append("...");
            System.out.println(sb.toString());
        } StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            } int i = 0; int i = 0; i 0 i < d i d i++ i++ i {
                sb.append(c[i]);
            } {
                sb.append(c[i]);
            } sb.append(c[i]) sb.append sb c[i] c i sb.append("...") sb.append sb "..." System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb {
            System.out.println(str);
        } System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        // int  a = d % 10;

        // if(a == 3) {
        //     System.out.println("bon");
        // } else if( a== 0 || a == 1 || a == 6 || a == 8) {
        //     System.out.println("pon");
        // } else {
        //     System.out.println("hon");
        // }
        String str = s.next();
        char c[] = str.toCharArray();
        if(c.length>d) {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            }
            sb.append("...");
            System.out.println(sb.toString());
        } else {
            System.out.println(str);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        // int  a = d % 10;

        // if(a == 3) {
        //     System.out.println("bon");
        // } else if( a== 0 || a == 1 || a == 6 || a == 8) {
        //     System.out.println("pon");
        // } else {
        //     System.out.println("hon");
        // }
        String str = s.next();
        char c[] = str.toCharArray();
        if(c.length>d) {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            }
            sb.append("...");
            System.out.println(sb.toString());
        } else {
            System.out.println(str);
        }
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        // int  a = d % 10;

        // if(a == 3) {
        //     System.out.println("bon");
        // } else if( a== 0 || a == 1 || a == 6 || a == 8) {
        //     System.out.println("pon");
        // } else {
        //     System.out.println("hon");
        // }
        String str = s.next();
        char c[] = str.toCharArray();
        if(c.length>d) {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < d; i++) {
                sb.append(c[i]);
            }
            sb.append("...");
            System.out.println(sb.toString());
        } else {
            System.out.println(str);
        }
    }
}