import java.util.Scanner; 

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int k = Integer.parseInt(scan.nextLine());
        String s = scan.nextLine();
        
        int length = s.length();

        if(k >= length){
            System.out.println(s);
        }else{
            String tmp = s.substring(0, k);
            System.out.println(tmp + "...");
        }

        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int k = Integer.parseInt(scan.nextLine());
        String s = scan.nextLine();
        
        int length = s.length();

        if(k >= length){
            System.out.println(s);
        }else{
            String tmp = s.substring(0, k);
            System.out.println(tmp + "...");
        }

        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int k = Integer.parseInt(scan.nextLine());
        String s = scan.nextLine();
        
        int length = s.length();

        if(k >= length){
            System.out.println(s);
        }else{
            String tmp = s.substring(0, k);
            System.out.println(tmp + "...");
        }

        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int k = Integer.parseInt(scan.nextLine());
        String s = scan.nextLine();
        
        int length = s.length();

        if(k >= length){
            System.out.println(s);
        }else{
            String tmp = s.substring(0, k);
            System.out.println(tmp + "...");
        }

        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int k = Integer.parseInt(scan.nextLine()); k Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan String s = scan.nextLine(); s scan.nextLine() scan.nextLine scan int length = s.length(); length s.length() s.length s if(k >= length){
            System.out.println(s);
        }else{
            String tmp = s.substring(0, k);
            System.out.println(tmp + "...");
        } k >= length k length {
            System.out.println(s);
        } System.out.println(s) System.out.println System.out System System.out s {
            String tmp = s.substring(0, k);
            System.out.println(tmp + "...");
        } String tmp = s.substring(0, k); tmp s.substring(0, k) s.substring s 0 k System.out.println(tmp + "...") System.out.println System.out System System.out tmp + "..." tmp "..." scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int k = Integer.parseInt(scan.nextLine());
        String s = scan.nextLine();
        
        int length = s.length();

        if(k >= length){
            System.out.println(s);
        }else{
            String tmp = s.substring(0, k);
            System.out.println(tmp + "...");
        }

        scan.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int k = Integer.parseInt(scan.nextLine());
        String s = scan.nextLine();
        
        int length = s.length();

        if(k >= length){
            System.out.println(s);
        }else{
            String tmp = s.substring(0, k);
            System.out.println(tmp + "...");
        }

        scan.close();
    }
} Main
import java.util.Scanner; 

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int k = Integer.parseInt(scan.nextLine());
        String s = scan.nextLine();
        
        int length = s.length();

        if(k >= length){
            System.out.println(s);
        }else{
            String tmp = s.substring(0, k);
            System.out.println(tmp + "...");
        }

        scan.close();
    }
}