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

