

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();
        String str = scan.next();
        scan.close();

        if (str.length() <= num) {
            System.out.println(str);
        } else {
            System.out.println(str.substring(0, num) + "...");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();
        String str = scan.next();
        scan.close();

        if (str.length() <= num) {
            System.out.println(str);
        } else {
            System.out.println(str.substring(0, num) + "...");
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();
        String str = scan.next();
        scan.close();

        if (str.length() <= num) {
            System.out.println(str);
        } else {
            System.out.println(str.substring(0, num) + "...");
        }
    } main {
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();
        String str = scan.next();
        scan.close();

        if (str.length() <= num) {
            System.out.println(str);
        } else {
            System.out.println(str.substring(0, num) + "...");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan String str = scan.next(); str scan.next() scan.next scan scan.close() scan.close scan if (str.length() <= num) {
            System.out.println(str);
        } else {
            System.out.println(str.substring(0, num) + "...");
        } str.length() <= num str.length() str.length str num {
            System.out.println(str);
        } System.out.println(str) System.out.println System.out System System.out str {
            System.out.println(str.substring(0, num) + "...");
        } System.out.println(str.substring(0, num) + "...") System.out.println System.out System System.out str.substring(0, num) + "..." str.substring(0, num) str.substring str 0 num "..." String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();
        String str = scan.next();
        scan.close();

        if (str.length() <= num) {
            System.out.println(str);
        } else {
            System.out.println(str.substring(0, num) + "...");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();
        String str = scan.next();
        scan.close();

        if (str.length() <= num) {
            System.out.println(str);
        } else {
            System.out.println(str.substring(0, num) + "...");
        }
    }
} Main


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();
        String str = scan.next();
        scan.close();

        if (str.length() <= num) {
            System.out.println(str);
        } else {
            System.out.println(str.substring(0, num) + "...");
        }
    }
}
