import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int K = s.nextInt();
        String str = s.next();

        if (str.length() <= K) System.out.print(str);
        else System.out.print(str.substring(0, K) + "...");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int K = s.nextInt();
        String str = s.next();

        if (str.length() <= K) System.out.print(str);
        else System.out.print(str.substring(0, K) + "...");
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int K = s.nextInt();
        String str = s.next();

        if (str.length() <= K) System.out.print(str);
        else System.out.print(str.substring(0, K) + "...");
    } main {
        Scanner s = new Scanner(System.in);
        int K = s.nextInt();
        String str = s.next();

        if (str.length() <= K) System.out.print(str);
        else System.out.print(str.substring(0, K) + "...");
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int K = s.nextInt(); K s.nextInt() s.nextInt s String str = s.next(); str s.next() s.next s if (str.length() <= K) System.out.print(str);
        else System.out.print(str.substring(0, K) + "..."); str.length() <= K str.length() str.length str K System.out.print(str) System.out.print System.out System System.out str System.out.print(str.substring(0, K) + "...") System.out.print System.out System System.out str.substring(0, K) + "..." str.substring(0, K) str.substring str 0 K "..." String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int K = s.nextInt();
        String str = s.next();

        if (str.length() <= K) System.out.print(str);
        else System.out.print(str.substring(0, K) + "...");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int K = s.nextInt();
        String str = s.next();

        if (str.length() <= K) System.out.print(str);
        else System.out.print(str.substring(0, K) + "...");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int K = s.nextInt();
        String str = s.next();

        if (str.length() <= K) System.out.print(str);
        else System.out.print(str.substring(0, K) + "...");
    }
}