import java.util.Scanner;

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

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