import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        String str = sc.next();

        if(str.length() <= k){
            System.out.println(str);
        }
        else{
            char[] strChar = new char[k];
            for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            }
            String makeStr = "";
            for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            }
            System.out.println(makeStr + "...");
        }
    }
} 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 str = sc.next();

        if(str.length() <= k){
            System.out.println(str);
        }
        else{
            char[] strChar = new char[k];
            for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            }
            String makeStr = "";
            for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            }
            System.out.println(makeStr + "...");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        String str = sc.next();

        if(str.length() <= k){
            System.out.println(str);
        }
        else{
            char[] strChar = new char[k];
            for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            }
            String makeStr = "";
            for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            }
            System.out.println(makeStr + "...");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        String str = sc.next();

        if(str.length() <= k){
            System.out.println(str);
        }
        else{
            char[] strChar = new char[k];
            for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            }
            String makeStr = "";
            for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            }
            System.out.println(makeStr + "...");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc String str = sc.next(); str sc.next() sc.next sc if(str.length() <= k){
            System.out.println(str);
        }
        else{
            char[] strChar = new char[k];
            for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            }
            String makeStr = "";
            for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            }
            System.out.println(makeStr + "...");
        } str.length() <= k str.length() str.length str k {
            System.out.println(str);
        } System.out.println(str) System.out.println System.out System System.out str {
            char[] strChar = new char[k];
            for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            }
            String makeStr = "";
            for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            }
            System.out.println(makeStr + "...");
        } char[] strChar = new char[k]; strChar new char[k] k for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            } int i = 0; int i = 0; i 0 i<k i k i++ i++ i {
                strChar[i] = str.charAt(i);
            } {
                strChar[i] = str.charAt(i);
            } strChar[i] = str.charAt(i) strChar[i] strChar i str.charAt(i) str.charAt str i String makeStr = ""; makeStr "" for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            } int j = 0; int j = 0; j 0 j<k j k j++ j++ j {
                makeStr += strChar[j];
            } {
                makeStr += strChar[j];
            } makeStr += strChar[j] makeStr strChar[j] strChar j System.out.println(makeStr + "...") System.out.println System.out System System.out makeStr + "..." makeStr "..." String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        String str = sc.next();

        if(str.length() <= k){
            System.out.println(str);
        }
        else{
            char[] strChar = new char[k];
            for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            }
            String makeStr = "";
            for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            }
            System.out.println(makeStr + "...");
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        String str = sc.next();

        if(str.length() <= k){
            System.out.println(str);
        }
        else{
            char[] strChar = new char[k];
            for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            }
            String makeStr = "";
            for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            }
            System.out.println(makeStr + "...");
        }
    }
} 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 str = sc.next();

        if(str.length() <= k){
            System.out.println(str);
        }
        else{
            char[] strChar = new char[k];
            for(int i = 0; i<k; i++){
                strChar[i] = str.charAt(i);
            }
            String makeStr = "";
            for(int j = 0; j<k; j++){
                makeStr += strChar[j];
            }
            System.out.println(makeStr + "...");
        }
    }
}