import java.util.Scanner;

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

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