import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        String str = scanner.next();
        int valLen = str.length(); 
        if(valLen == a){
            System.out.println(str);
        }else if(valLen < a){
            System.out.println(str);
        }else{
            String i = str.substring(0,a);
            System.out.println(i + "...");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        String str = scanner.next();
        int valLen = str.length(); 
        if(valLen == a){
            System.out.println(str);
        }else if(valLen < a){
            System.out.println(str);
        }else{
            String i = str.substring(0,a);
            System.out.println(i + "...");
        }
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        String str = scanner.next();
        int valLen = str.length(); 
        if(valLen == a){
            System.out.println(str);
        }else if(valLen < a){
            System.out.println(str);
        }else{
            String i = str.substring(0,a);
            System.out.println(i + "...");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        String str = scanner.next();
        int valLen = str.length(); 
        if(valLen == a){
            System.out.println(str);
        }else if(valLen < a){
            System.out.println(str);
        }else{
            String i = str.substring(0,a);
            System.out.println(i + "...");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner String str = scanner.next(); str scanner.next() scanner.next scanner int valLen = str.length(); valLen str.length() str.length str if(valLen == a){
            System.out.println(str);
        }else if(valLen < a){
            System.out.println(str);
        }else{
            String i = str.substring(0,a);
            System.out.println(i + "...");
        } valLen == a valLen a {
            System.out.println(str);
        } System.out.println(str) System.out.println System.out System System.out str if(valLen < a){
            System.out.println(str);
        }else{
            String i = str.substring(0,a);
            System.out.println(i + "...");
        } valLen < a valLen a {
            System.out.println(str);
        } System.out.println(str) System.out.println System.out System System.out str {
            String i = str.substring(0,a);
            System.out.println(i + "...");
        } String i = str.substring(0,a); i str.substring(0,a) str.substring str 0 a System.out.println(i + "...") System.out.println System.out System System.out i + "..." i "..." String[] args args public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        String str = scanner.next();
        int valLen = str.length(); 
        if(valLen == a){
            System.out.println(str);
        }else if(valLen < a){
            System.out.println(str);
        }else{
            String i = str.substring(0,a);
            System.out.println(i + "...");
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        String str = scanner.next();
        int valLen = str.length(); 
        if(valLen == a){
            System.out.println(str);
        }else if(valLen < a){
            System.out.println(str);
        }else{
            String i = str.substring(0,a);
            System.out.println(i + "...");
        }
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        String str = scanner.next();
        int valLen = str.length(); 
        if(valLen == a){
            System.out.println(str);
        }else if(valLen < a){
            System.out.println(str);
        }else{
            String i = str.substring(0,a);
            System.out.println(i + "...");
        }
    }
}