import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int k = Integer.parseInt(scanner.nextLine());
        String s = scanner.nextLine();
        
        if (s.length() <= k) {
            System.out.println(s);
        } else {
            System.out.print(s.substring(0, k));
            System.out.println("...");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int k = Integer.parseInt(scanner.nextLine());
        String s = scanner.nextLine();
        
        if (s.length() <= k) {
            System.out.println(s);
        } else {
            System.out.print(s.substring(0, k));
            System.out.println("...");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int k = Integer.parseInt(scanner.nextLine());
        String s = scanner.nextLine();
        
        if (s.length() <= k) {
            System.out.println(s);
        } else {
            System.out.print(s.substring(0, k));
            System.out.println("...");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int k = Integer.parseInt(scanner.nextLine());
        String s = scanner.nextLine();
        
        if (s.length() <= k) {
            System.out.println(s);
        } else {
            System.out.print(s.substring(0, k));
            System.out.println("...");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int k = Integer.parseInt(scanner.nextLine()); k Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer 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.print(s.substring(0, k));
            System.out.println("...");
        } 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.print(s.substring(0, k));
            System.out.println("...");
        } System.out.print(s.substring(0, k)) System.out.print System.out System System.out s.substring(0, k) s.substring s 0 k System.out.println("...") System.out.println System.out System System.out "..." String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int k = Integer.parseInt(scanner.nextLine());
        String s = scanner.nextLine();
        
        if (s.length() <= k) {
            System.out.println(s);
        } else {
            System.out.print(s.substring(0, k));
            System.out.println("...");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int k = Integer.parseInt(scanner.nextLine());
        String s = scanner.nextLine();
        
        if (s.length() <= k) {
            System.out.println(s);
        } else {
            System.out.print(s.substring(0, k));
            System.out.println("...");
        }
    }
} Main
import java.util.Scanner;

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