import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();
        String string = scanner.next();

        int wordCount = string.length();

        if (number < wordCount) {
            String cuttingWord = string.substring(0,number);
            cuttingWord += "...";
            System.out.println(cuttingWord);
        } else {
            System.out.println(string);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();
        String string = scanner.next();

        int wordCount = string.length();

        if (number < wordCount) {
            String cuttingWord = string.substring(0,number);
            cuttingWord += "...";
            System.out.println(cuttingWord);
        } else {
            System.out.println(string);
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();
        String string = scanner.next();

        int wordCount = string.length();

        if (number < wordCount) {
            String cuttingWord = string.substring(0,number);
            cuttingWord += "...";
            System.out.println(cuttingWord);
        } else {
            System.out.println(string);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();
        String string = scanner.next();

        int wordCount = string.length();

        if (number < wordCount) {
            String cuttingWord = string.substring(0,number);
            cuttingWord += "...";
            System.out.println(cuttingWord);
        } else {
            System.out.println(string);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer number = scanner.nextInt(); number scanner.nextInt() scanner.nextInt scanner String string = scanner.next(); string scanner.next() scanner.next scanner int wordCount = string.length(); wordCount string.length() string.length string if (number < wordCount) {
            String cuttingWord = string.substring(0,number);
            cuttingWord += "...";
            System.out.println(cuttingWord);
        } else {
            System.out.println(string);
        } number < wordCount number wordCount {
            String cuttingWord = string.substring(0,number);
            cuttingWord += "...";
            System.out.println(cuttingWord);
        } String cuttingWord = string.substring(0,number); cuttingWord string.substring(0,number) string.substring string 0 number cuttingWord += "..." cuttingWord "..." System.out.println(cuttingWord) System.out.println System.out System System.out cuttingWord {
            System.out.println(string);
        } System.out.println(string) System.out.println System.out System System.out string String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();
        String string = scanner.next();

        int wordCount = string.length();

        if (number < wordCount) {
            String cuttingWord = string.substring(0,number);
            cuttingWord += "...";
            System.out.println(cuttingWord);
        } else {
            System.out.println(string);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();
        String string = scanner.next();

        int wordCount = string.length();

        if (number < wordCount) {
            String cuttingWord = string.substring(0,number);
            cuttingWord += "...";
            System.out.println(cuttingWord);
        } else {
            System.out.println(string);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();
        String string = scanner.next();

        int wordCount = string.length();

        if (number < wordCount) {
            String cuttingWord = string.substring(0,number);
            cuttingWord += "...";
            System.out.println(cuttingWord);
        } else {
            System.out.println(string);
        }
    }
}
