import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
	    Scanner s = new Scanner(System.in);
	    int k =s.nextInt();
	    s.nextLine();
	    String ss = s.nextLine();
	    if(ss.length()>k) {
            String u = "";
            for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            }
            u += "...";
            System.out.println(u);
        }
	    else{
            System.out.println(ss);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
	    Scanner s = new Scanner(System.in);
	    int k =s.nextInt();
	    s.nextLine();
	    String ss = s.nextLine();
	    if(ss.length()>k) {
            String u = "";
            for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            }
            u += "...";
            System.out.println(u);
        }
	    else{
            System.out.println(ss);
        }
    }
} Main public static void main(String[] args) {
	    Scanner s = new Scanner(System.in);
	    int k =s.nextInt();
	    s.nextLine();
	    String ss = s.nextLine();
	    if(ss.length()>k) {
            String u = "";
            for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            }
            u += "...";
            System.out.println(u);
        }
	    else{
            System.out.println(ss);
        }
    } main {
	    Scanner s = new Scanner(System.in);
	    int k =s.nextInt();
	    s.nextLine();
	    String ss = s.nextLine();
	    if(ss.length()>k) {
            String u = "";
            for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            }
            u += "...";
            System.out.println(u);
        }
	    else{
            System.out.println(ss);
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int k =s.nextInt(); k s.nextInt() s.nextInt s s.nextLine() s.nextLine s String ss = s.nextLine(); ss s.nextLine() s.nextLine s if(ss.length()>k) {
            String u = "";
            for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            }
            u += "...";
            System.out.println(u);
        }
	    else{
            System.out.println(ss);
        } ss.length()>k ss.length() ss.length ss k {
            String u = "";
            for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            }
            u += "...";
            System.out.println(u);
        } String u = ""; u "" for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
                u += ss.charAt(i);
            } {
                u += ss.charAt(i);
            } u += ss.charAt(i) u ss.charAt(i) ss.charAt ss i u += "..." u "..." System.out.println(u) System.out.println System.out System System.out u {
            System.out.println(ss);
        } System.out.println(ss) System.out.println System.out System System.out ss String[] args args public class Main {

    public static void main(String[] args) {
	    Scanner s = new Scanner(System.in);
	    int k =s.nextInt();
	    s.nextLine();
	    String ss = s.nextLine();
	    if(ss.length()>k) {
            String u = "";
            for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            }
            u += "...";
            System.out.println(u);
        }
	    else{
            System.out.println(ss);
        }
    }
} public class Main {

    public static void main(String[] args) {
	    Scanner s = new Scanner(System.in);
	    int k =s.nextInt();
	    s.nextLine();
	    String ss = s.nextLine();
	    if(ss.length()>k) {
            String u = "";
            for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            }
            u += "...";
            System.out.println(u);
        }
	    else{
            System.out.println(ss);
        }
    }
} Main
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
	    Scanner s = new Scanner(System.in);
	    int k =s.nextInt();
	    s.nextLine();
	    String ss = s.nextLine();
	    if(ss.length()>k) {
            String u = "";
            for (int i = 0; i < k; i++) {
                u += ss.charAt(i);
            }
            u += "...";
            System.out.println(u);
        }
	    else{
            System.out.println(ss);
        }
    }
}
