import java.util.*;

class Main{
	public static void main(String[] args){
	  Scanner scn = new Scanner(System.in);
      int k = Integer.parseInt(scn.nextLine());
      String s = scn.nextLine();
      if(s.length() < k+1){
        System.out.println(s);
        return;
      }else{
        String ans = s.substring(0,k) + "...";
        System.out.println(ans);
      }
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
	  Scanner scn = new Scanner(System.in);
      int k = Integer.parseInt(scn.nextLine());
      String s = scn.nextLine();
      if(s.length() < k+1){
        System.out.println(s);
        return;
      }else{
        String ans = s.substring(0,k) + "...";
        System.out.println(ans);
      }
	}
} Main public static void main(String[] args){
	  Scanner scn = new Scanner(System.in);
      int k = Integer.parseInt(scn.nextLine());
      String s = scn.nextLine();
      if(s.length() < k+1){
        System.out.println(s);
        return;
      }else{
        String ans = s.substring(0,k) + "...";
        System.out.println(ans);
      }
	} main {
	  Scanner scn = new Scanner(System.in);
      int k = Integer.parseInt(scn.nextLine());
      String s = scn.nextLine();
      if(s.length() < k+1){
        System.out.println(s);
        return;
      }else{
        String ans = s.substring(0,k) + "...";
        System.out.println(ans);
      }
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int k = Integer.parseInt(scn.nextLine()); k Integer.parseInt(scn.nextLine()) Integer.parseInt Integer scn.nextLine() scn.nextLine scn String s = scn.nextLine(); s scn.nextLine() scn.nextLine scn if(s.length() < k+1){
        System.out.println(s);
        return;
      }else{
        String ans = s.substring(0,k) + "...";
        System.out.println(ans);
      } s.length() < k+1 s.length() s.length s k+1 k 1 {
        System.out.println(s);
        return;
      } System.out.println(s) System.out.println System.out System System.out s return; {
        String ans = s.substring(0,k) + "...";
        System.out.println(ans);
      } String ans = s.substring(0,k) + "..."; ans s.substring(0,k) + "..." s.substring(0,k) s.substring s 0 k "..." System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

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