
import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int K = scan.nextInt();
        String S = scan.next();
        if(S.length() <= K){
            os.println(S);
            return;
        }

        os.println(S.substring(0,K)+"...");

    }

} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int K = scan.nextInt();
        String S = scan.next();
        if(S.length() <= K){
            os.println(S);
            return;
        }

        os.println(S.substring(0,K)+"...");

    }

} Main public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    } main {
        solve(System.in, System.out);
    } solve(System.in, System.out) solve System.in System System.in System.out System System.out String[] args args static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int K = scan.nextInt();
        String S = scan.next();
        if(S.length() <= K){
            os.println(S);
            return;
        }

        os.println(S.substring(0,K)+"...");

    } solve {
        // Your code here!
        Scanner scan = new Scanner(is);
        int K = scan.nextInt();
        String S = scan.next();
        if(S.length() <= K){
            os.println(S);
            return;
        }

        os.println(S.substring(0,K)+"...");

    } Scanner scan = new Scanner(is); scan new Scanner(is) int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan String S = scan.next(); S scan.next() scan.next scan if(S.length() <= K){
            os.println(S);
            return;
        } S.length() <= K S.length() S.length S K {
            os.println(S);
            return;
        } os.println(S) os.println os S return; os.println(S.substring(0,K)+"...") os.println os S.substring(0,K)+"..." S.substring(0,K) S.substring S 0 K "..." InputStream is is PrintStream os os public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int K = scan.nextInt();
        String S = scan.next();
        if(S.length() <= K){
            os.println(S);
            return;
        }

        os.println(S.substring(0,K)+"...");

    }

} public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int K = scan.nextInt();
        String S = scan.next();
        if(S.length() <= K){
            os.println(S);
            return;
        }

        os.println(S.substring(0,K)+"...");

    }

} Main

import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int K = scan.nextInt();
        String S = scan.next();
        if(S.length() <= K){
            os.println(S);
            return;
        }

        os.println(S.substring(0,K)+"...");

    }

}