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