import java.util.*;

public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt(); scanner.nextLine();
        String S = scanner.nextLine();

        if(S.length() <= K){
            System.out.println( S );

        }else{
            System.out.println( S.substring(0,K) + "..." );
        }

        scanner.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt(); scanner.nextLine();
        String S = scanner.nextLine();

        if(S.length() <= K){
            System.out.println( S );

        }else{
            System.out.println( S.substring(0,K) + "..." );
        }

        scanner.close();
    }
} Main public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt(); scanner.nextLine();
        String S = scanner.nextLine();

        if(S.length() <= K){
            System.out.println( S );

        }else{
            System.out.println( S.substring(0,K) + "..." );
        }

        scanner.close();
    } main {

        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt(); scanner.nextLine();
        String S = scanner.nextLine();

        if(S.length() <= K){
            System.out.println( S );

        }else{
            System.out.println( S.substring(0,K) + "..." );
        }

        scanner.close();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int K = scanner.nextInt(); K scanner.nextInt() scanner.nextInt scanner scanner.nextLine() scanner.nextLine scanner String S = scanner.nextLine(); S scanner.nextLine() scanner.nextLine 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 "..." scanner.close() scanner.close scanner String[] args args public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt(); scanner.nextLine();
        String S = scanner.nextLine();

        if(S.length() <= K){
            System.out.println( S );

        }else{
            System.out.println( S.substring(0,K) + "..." );
        }

        scanner.close();
    }
} public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt(); scanner.nextLine();
        String S = scanner.nextLine();

        if(S.length() <= K){
            System.out.println( S );

        }else{
            System.out.println( S.substring(0,K) + "..." );
        }

        scanner.close();
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int K = scanner.nextInt(); scanner.nextLine();
        String S = scanner.nextLine();

        if(S.length() <= K){
            System.out.println( S );

        }else{
            System.out.println( S.substring(0,K) + "..." );
        }

        scanner.close();
    }
}