import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        
        int K = scanner.nextInt();
        String S = scanner.next();
        
        if(S.length()<=K){
            System.out.println(S);
        }else{
            System.out.println(S.substring(0,K)+"...");
        }
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        
        int K = scanner.nextInt();
        String S = scanner.next();
        
        if(S.length()<=K){
            System.out.println(S);
        }else{
            System.out.println(S.substring(0,K)+"...");
        }
        
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        
        int K = scanner.nextInt();
        String S = scanner.next();
        
        if(S.length()<=K){
            System.out.println(S);
        }else{
            System.out.println(S.substring(0,K)+"...");
        }
        
    } main {
        
        Scanner scanner = new Scanner(System.in);
        
        int K = scanner.nextInt();
        String S = scanner.next();
        
        if(S.length()<=K){
            System.out.println(S);
        }else{
            System.out.println(S.substring(0,K)+"...");
        }
        
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int K = scanner.nextInt(); K scanner.nextInt() scanner.nextInt scanner String S = scanner.next(); S scanner.next() scanner.next scanner if(S.length()<=K){
            System.out.println(S);
        }else{
            System.out.println(S.substring(0,K)+"...");
        } S.length()<=K S.length() S.length S K {
            System.out.println(S);
        } System.out.println(S) System.out.println System.out System System.out S {
            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 "..." String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        
        int K = scanner.nextInt();
        String S = scanner.next();
        
        if(S.length()<=K){
            System.out.println(S);
        }else{
            System.out.println(S.substring(0,K)+"...");
        }
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        
        int K = scanner.nextInt();
        String S = scanner.next();
        
        if(S.length()<=K){
            System.out.println(S);
        }else{
            System.out.println(S.substring(0,K)+"...");
        }
        
    }
} Main
import java.util.*;

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