import java.util.*;
class Main{
    public static void main(String[]args){
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String S = scanner.next();
        char[] split_S = new char [S.length()];
        for(int i=0;i<S.length();i++){
            split_S[i] = S.charAt(i);
        }
        if(S.length() <= K){
            for(int i=0;i<S.length();i++){
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            }
        }
        else{
            for(int i=0;i<S.length();i++){
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            }
        }

        scanner.close();
    }
} import java.util.*; util.* java class Main{
    public static void main(String[]args){
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String S = scanner.next();
        char[] split_S = new char [S.length()];
        for(int i=0;i<S.length();i++){
            split_S[i] = S.charAt(i);
        }
        if(S.length() <= K){
            for(int i=0;i<S.length();i++){
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            }
        }
        else{
            for(int i=0;i<S.length();i++){
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            }
        }

        scanner.close();
    }
} Main public static void main(String[]args){
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String S = scanner.next();
        char[] split_S = new char [S.length()];
        for(int i=0;i<S.length();i++){
            split_S[i] = S.charAt(i);
        }
        if(S.length() <= K){
            for(int i=0;i<S.length();i++){
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            }
        }
        else{
            for(int i=0;i<S.length();i++){
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            }
        }

        scanner.close();
    } main {
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String S = scanner.next();
        char[] split_S = new char [S.length()];
        for(int i=0;i<S.length();i++){
            split_S[i] = S.charAt(i);
        }
        if(S.length() <= K){
            for(int i=0;i<S.length();i++){
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            }
        }
        else{
            for(int i=0;i<S.length();i++){
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            }
        }

        scanner.close();
    } 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 char[] split_S = new char [S.length()]; split_S new char [S.length()] S.length() S.length S for(int i=0;i<S.length();i++){
            split_S[i] = S.charAt(i);
        } int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
            split_S[i] = S.charAt(i);
        } {
            split_S[i] = S.charAt(i);
        } split_S[i] = S.charAt(i) split_S[i] split_S i S.charAt(i) S.charAt S i if(S.length() <= K){
            for(int i=0;i<S.length();i++){
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            }
        }
        else{
            for(int i=0;i<S.length();i++){
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            }
        } S.length() <= K S.length() S.length S K {
            for(int i=0;i<S.length();i++){
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            }
        } for(int i=0;i<S.length();i++){
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            } int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            } {
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            } if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                } i != i-1 i i-1 i 1 {
                    System.out.print(split_S[i]);
                } System.out.print(split_S[i]) System.out.print System.out System System.out split_S[i] split_S i {
                    System.out.println(split_S[i]);
                } System.out.println(split_S[i]) System.out.println System.out System System.out split_S[i] split_S i {
            for(int i=0;i<S.length();i++){
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            }
        } for(int i=0;i<S.length();i++){
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            } int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            } {
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            } if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                } i != K-1 i K-1 K 1 {
                    System.out.print(split_S[i]);
                } System.out.print(split_S[i]) System.out.print System.out System System.out split_S[i] split_S i {
                    System.out.println(split_S[i]+"...");
                    break;
                } System.out.println(split_S[i]+"...") System.out.println System.out System System.out split_S[i]+"..." split_S[i] split_S i "..." break; scanner.close() scanner.close scanner String[]args args
import java.util.*;
class Main{
    public static void main(String[]args){
        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt();
        String S = scanner.next();
        char[] split_S = new char [S.length()];
        for(int i=0;i<S.length();i++){
            split_S[i] = S.charAt(i);
        }
        if(S.length() <= K){
            for(int i=0;i<S.length();i++){
                if(i != i-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]);
                }
            }
        }
        else{
            for(int i=0;i<S.length();i++){
                if(i != K-1){
                    System.out.print(split_S[i]);
                }
                else{
                    System.out.println(split_S[i]+"...");
                    break;
                }
            }
        }

        scanner.close();
    }
}