import java.util.*;
import java.io.*;
 
public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
        String str = sc.next();
        
        if (n < str.length()) {
          	System.out.print(str.substring(0,n));
          	System.out.println("...");
        } else {
          	System.out.println(str);
        }
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
        String str = sc.next();
        
        if (n < str.length()) {
          	System.out.print(str.substring(0,n));
          	System.out.println("...");
        } else {
          	System.out.println(str);
        }
        
    }
} Main public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
        String str = sc.next();
        
        if (n < str.length()) {
          	System.out.print(str.substring(0,n));
          	System.out.println("...");
        } else {
          	System.out.println(str);
        }
        
    } main {
        final Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
        String str = sc.next();
        
        if (n < str.length()) {
          	System.out.print(str.substring(0,n));
          	System.out.println("...");
        } else {
          	System.out.println(str);
        }
        
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc String str = sc.next(); str sc.next() sc.next sc if (n < str.length()) {
          	System.out.print(str.substring(0,n));
          	System.out.println("...");
        } else {
          	System.out.println(str);
        } n < str.length() n str.length() str.length str {
          	System.out.print(str.substring(0,n));
          	System.out.println("...");
        } System.out.print(str.substring(0,n)) System.out.print System.out System System.out str.substring(0,n) str.substring str 0 n System.out.println("...") System.out.println System.out System System.out "..." {
          	System.out.println(str);
        } System.out.println(str) System.out.println System.out System System.out str final String[] args args public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
        String str = sc.next();
        
        if (n < str.length()) {
          	System.out.print(str.substring(0,n));
          	System.out.println("...");
        } else {
          	System.out.println(str);
        }
        
    }
} public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
        String str = sc.next();
        
        if (n < str.length()) {
          	System.out.print(str.substring(0,n));
          	System.out.println("...");
        } else {
          	System.out.println(str);
        }
        
    }
} Main
import java.util.*;
import java.io.*;
 
public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
        String str = sc.next();
        
        if (n < str.length()) {
          	System.out.print(str.substring(0,n));
          	System.out.println("...");
        } else {
          	System.out.println(str);
        }
        
    }
}