import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        int K = Integer.parseInt(line);
        String S = bufferedReader.readLine();
        if (S.length() > K) {
            System.out.println(S.substring(0, K) + "...");
        } else {
            System.out.println(S);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        int K = Integer.parseInt(line);
        String S = bufferedReader.readLine();
        if (S.length() > K) {
            System.out.println(S.substring(0, K) + "...");
        } else {
            System.out.println(S);
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        int K = Integer.parseInt(line);
        String S = bufferedReader.readLine();
        if (S.length() > K) {
            System.out.println(S.substring(0, K) + "...");
        } else {
            System.out.println(S);
        }
    } main {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        int K = Integer.parseInt(line);
        String S = bufferedReader.readLine();
        if (S.length() > K) {
            System.out.println(S.substring(0, K) + "...");
        } else {
            System.out.println(S);
        }
    } BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); bufferedReader new BufferedReader(new InputStreamReader(System.in)) String line = bufferedReader.readLine(); line bufferedReader.readLine() bufferedReader.readLine bufferedReader int K = Integer.parseInt(line); K Integer.parseInt(line) Integer.parseInt Integer line String S = bufferedReader.readLine(); S bufferedReader.readLine() bufferedReader.readLine bufferedReader if (S.length() > K) {
            System.out.println(S.substring(0, K) + "...");
        } else {
            System.out.println(S);
        } S.length() > K S.length() S.length S K {
            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 "..." {
            System.out.println(S);
        } System.out.println(S) System.out.println System.out System System.out S String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        int K = Integer.parseInt(line);
        String S = bufferedReader.readLine();
        if (S.length() > K) {
            System.out.println(S.substring(0, K) + "...");
        } else {
            System.out.println(S);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        int K = Integer.parseInt(line);
        String S = bufferedReader.readLine();
        if (S.length() > K) {
            System.out.println(S.substring(0, K) + "...");
        } else {
            System.out.println(S);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        int K = Integer.parseInt(line);
        String S = bufferedReader.readLine();
        if (S.length() > K) {
            System.out.println(S.substring(0, K) + "...");
        } else {
            System.out.println(S);
        }
    }
}
