import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int k = stdIn.nextInt();
        String s = stdIn.next();
        if(k > 0 && k < 101){
            if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int k = stdIn.nextInt();
        String s = stdIn.next();
        if(k > 0 && k < 101){
            if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            }
        }
    }
} Main public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int k = stdIn.nextInt();
        String s = stdIn.next();
        if(k > 0 && k < 101){
            if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            }
        }
    } main {
        Scanner stdIn = new Scanner(System.in);
        int k = stdIn.nextInt();
        String s = stdIn.next();
        if(k > 0 && k < 101){
            if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            }
        }
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int k = stdIn.nextInt(); k stdIn.nextInt() stdIn.nextInt stdIn String s = stdIn.next(); s stdIn.next() stdIn.next stdIn if(k > 0 && k < 101){
            if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            }
        } k > 0 && k < 101 k > 0 k 0 k < 101 k 101 {
            if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            }
        } if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            } s.length() > 0 && s.length() < 101 s.length() > 0 s.length() s.length s 0 s.length() < 101 s.length() s.length s 101 {
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            } if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                } s.length() > k s.length() s.length s k {
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                } char[] x = new char[s.length()]; x new char[s.length()] s.length() s.length s for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    } int i = 0 ; int i = 0 ; i 0 i < k i k i++ i++ i {
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    } {
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    } x[i] = s.charAt(i) x[i] x i s.charAt(i) s.charAt s i System.out.print(x[i]) System.out.print System.out System System.out x[i] x i System.out.println("...") System.out.println System.out System System.out "..." {
                    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){
        Scanner stdIn = new Scanner(System.in);
        int k = stdIn.nextInt();
        String s = stdIn.next();
        if(k > 0 && k < 101){
            if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            }
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int k = stdIn.nextInt();
        String s = stdIn.next();
        if(k > 0 && k < 101){
            if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int k = stdIn.nextInt();
        String s = stdIn.next();
        if(k > 0 && k < 101){
            if(s.length() > 0 && s.length() < 101){
                if(s.length() > k){
                    char[] x = new char[s.length()];
                    for(int i = 0 ; i < k ; i++){
                        x[i] = s.charAt(i);
                        System.out.print(x[i]);
                    }
                    System.out.println("...");
                }else{
                    System.out.println(s);
                }
            }
        }
    }
}
