import java.util.*;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        
        String ans = S;
        if(S.length() > K) {
            ans = S.substring(0,K) + "...";
        }
        
        System.out.println(ans);
    }
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        
        String ans = S;
        if(S.length() > K) {
            ans = S.substring(0,K) + "...";
        }
        
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        
        String ans = S;
        if(S.length() > K) {
            ans = S.substring(0,K) + "...";
        }
        
        System.out.println(ans);
    } main {
        
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        
        String ans = S;
        if(S.length() > K) {
            ans = S.substring(0,K) + "...";
        }
        
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc String S = sc.next(); S sc.next() sc.next sc String ans = S; ans S if(S.length() > K) {
            ans = S.substring(0,K) + "...";
        } S.length() > K S.length() S.length S K {
            ans = S.substring(0,K) + "...";
        } ans = S.substring(0,K) + "..." ans S.substring(0,K) + "..." S.substring(0,K) S.substring S 0 K "..." System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        
        String ans = S;
        if(S.length() > K) {
            ans = S.substring(0,K) + "...";
        }
        
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        
        String ans = S;
        if(S.length() > K) {
            ans = S.substring(0,K) + "...";
        }
        
        System.out.println(ans);
    }
} Main
import java.util.*;
import java.lang.Math;

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