import java.util.*;

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

        
    }
} import java.util.*; util.* java public class Main{
    public static void main(String args[]) {
        Scanner sn = new Scanner(System.in);
        int K = sn.nextInt();
        String S = sn.next();
        String result = "";
        
        if(K < S.length()){
            for(int i=0; i<K; i++){
                result = result + S.substring(i,i+1);
            }
            result = result + "...";
            System.out.println(result);
        }else{
            System.out.println(S);
        }

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

        
    } main {
        Scanner sn = new Scanner(System.in);
        int K = sn.nextInt();
        String S = sn.next();
        String result = "";
        
        if(K < S.length()){
            for(int i=0; i<K; i++){
                result = result + S.substring(i,i+1);
            }
            result = result + "...";
            System.out.println(result);
        }else{
            System.out.println(S);
        }

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

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

        
    }
} Main
import java.util.*;

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

        
    }
}