import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            final int K = s.nextInt();
            final String S = s.next();
            System.out.println(S.length() > K ? S.substring(0, K) + "..." : S);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            final int K = s.nextInt();
            final String S = s.next();
            System.out.println(S.length() > K ? S.substring(0, K) + "..." : S);
        }
    }
} Main public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            final int K = s.nextInt();
            final String S = s.next();
            System.out.println(S.length() > K ? S.substring(0, K) + "..." : S);
        }
    } main {
        try (Scanner s = new Scanner(System.in)) {
            final int K = s.nextInt();
            final String S = s.next();
            System.out.println(S.length() > K ? S.substring(0, K) + "..." : S);
        }
    } try (Scanner s = new Scanner(System.in)) {
            final int K = s.nextInt();
            final String S = s.next();
            System.out.println(S.length() > K ? S.substring(0, K) + "..." : S);
        } {
            final int K = s.nextInt();
            final String S = s.next();
            System.out.println(S.length() > K ? S.substring(0, K) + "..." : S);
        } Scanner s = new Scanner(System.in) Scanner s = new Scanner(System.in) new Scanner(System.in) final int K = s.nextInt(); K s.nextInt() s.nextInt s final String S = s.next(); S s.next() s.next s System.out.println(S.length() > K ? S.substring(0, K) + "..." : S) System.out.println System.out System System.out S.length() > K ? S.substring(0, K) + "..." : S S.length() > K S.length() S.length S K S.substring(0, K) + "..." S.substring(0, K) S.substring S 0 K "..." S String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            final int K = s.nextInt();
            final String S = s.next();
            System.out.println(S.length() > K ? S.substring(0, K) + "..." : S);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            final int K = s.nextInt();
            final String S = s.next();
            System.out.println(S.length() > K ? S.substring(0, K) + "..." : S);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            final int K = s.nextInt();
            final String S = s.next();
            System.out.println(S.length() > K ? S.substring(0, K) + "..." : S);
        }
    }
}
