import java.util.Scanner;
import java.util.ServiceConfigurationError;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();

        if(s.length() <= k){

        }else {
            StringBuilder sb = new StringBuilder();
            sb.append(s);

            sb.setLength(k);
            sb.append("...");
            s = sb.toString();
        }

        System.out.println(s);
    }
} import java.util.Scanner; Scanner java.util import java.util.ServiceConfigurationError; ServiceConfigurationError java.util public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();

        if(s.length() <= k){

        }else {
            StringBuilder sb = new StringBuilder();
            sb.append(s);

            sb.setLength(k);
            sb.append("...");
            s = sb.toString();
        }

        System.out.println(s);
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();

        if(s.length() <= k){

        }else {
            StringBuilder sb = new StringBuilder();
            sb.append(s);

            sb.setLength(k);
            sb.append("...");
            s = sb.toString();
        }

        System.out.println(s);
    } main {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();

        if(s.length() <= k){

        }else {
            StringBuilder sb = new StringBuilder();
            sb.append(s);

            sb.setLength(k);
            sb.append("...");
            s = sb.toString();
        }

        System.out.println(s);
    } 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 if(s.length() <= k){

        }else {
            StringBuilder sb = new StringBuilder();
            sb.append(s);

            sb.setLength(k);
            sb.append("...");
            s = sb.toString();
        } s.length() <= k s.length() s.length s k {

        } {
            StringBuilder sb = new StringBuilder();
            sb.append(s);

            sb.setLength(k);
            sb.append("...");
            s = sb.toString();
        } StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(s) sb.append sb s sb.setLength(k) sb.setLength sb k sb.append("...") sb.append sb "..." s = sb.toString() s sb.toString() sb.toString sb 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 sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();

        if(s.length() <= k){

        }else {
            StringBuilder sb = new StringBuilder();
            sb.append(s);

            sb.setLength(k);
            sb.append("...");
            s = sb.toString();
        }

        System.out.println(s);
    }
} public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();

        if(s.length() <= k){

        }else {
            StringBuilder sb = new StringBuilder();
            sb.append(s);

            sb.setLength(k);
            sb.append("...");
            s = sb.toString();
        }

        System.out.println(s);
    }
} Main
import java.util.Scanner;
import java.util.ServiceConfigurationError;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();

        if(s.length() <= k){

        }else {
            StringBuilder sb = new StringBuilder();
            sb.append(s);

            sb.setLength(k);
            sb.append("...");
            s = sb.toString();
        }

        System.out.println(s);
    }
}
