import java.util.*;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int k;
    String s;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        s = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        if (s.length() <= k) {
            System.out.println(s);            
        } else {
            System.out.println(s.substring(0, k)+"...");            
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int k;
    String s;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        s = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        if (s.length() <= k) {
            System.out.println(s);            
        } else {
            System.out.println(s.substring(0, k)+"...");            
        }
    }
} Main // 変数一覧
    int k; k String s; s public static void main(String[] args) {
        Main main = new Main();
        main.run();
    } main {
        Main main = new Main();
        main.run();
    } Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        s = sc.next();
        sc.close();

        // 解答処理
        solve();
    } run {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        s = sc.next();
        sc.close();

        // 解答処理
        solve();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) k = sc.nextInt() k sc.nextInt() sc.nextInt sc s = sc.next() s sc.next() sc.next sc sc.close() sc.close sc solve() solve private void solve() {
        if (s.length() <= k) {
            System.out.println(s);            
        } else {
            System.out.println(s.substring(0, k)+"...");            
        }
    } solve {
        if (s.length() <= k) {
            System.out.println(s);            
        } else {
            System.out.println(s.substring(0, k)+"...");            
        }
    } if (s.length() <= k) {
            System.out.println(s);            
        } else {
            System.out.println(s.substring(0, k)+"...");            
        } s.length() <= k s.length() s.length s k {
            System.out.println(s);            
        } System.out.println(s) System.out.println System.out System System.out s {
            System.out.println(s.substring(0, k)+"...");            
        } System.out.println(s.substring(0, k)+"...") System.out.println System.out System System.out s.substring(0, k)+"..." s.substring(0, k) s.substring s 0 k "..." public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int k;
    String s;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        s = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        if (s.length() <= k) {
            System.out.println(s);            
        } else {
            System.out.println(s.substring(0, k)+"...");            
        }
    }
} public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int k;
    String s;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        s = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        if (s.length() <= k) {
            System.out.println(s);            
        } else {
            System.out.println(s.substring(0, k)+"...");            
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int k;
    String s;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        s = sc.next();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        if (s.length() <= k) {
            System.out.println(s);            
        } else {
            System.out.println(s.substring(0, k)+"...");            
        }
    }
}