import java.lang.*;
import java.util.*;
class Main
{
  public static void main(String args[])
  {
    String s;int k;
    Scanner sc=new Scanner(System.in);
    k=sc.nextInt();
    s=sc.next();
    String s1[]=s.split("");
    if(s1.length<=k)
    {
     System.out.println(s);
    }
    else
    {
      for(int i=0;i<k;i++)
      {
        System.out.print(s1[i]+"");
      }
      System.out.println("...");
    }
  }
} import java.lang.*; lang.* java import java.util.*; util.* java class Main
{
  public static void main(String args[])
  {
    String s;int k;
    Scanner sc=new Scanner(System.in);
    k=sc.nextInt();
    s=sc.next();
    String s1[]=s.split("");
    if(s1.length<=k)
    {
     System.out.println(s);
    }
    else
    {
      for(int i=0;i<k;i++)
      {
        System.out.print(s1[i]+"");
      }
      System.out.println("...");
    }
  }
} Main public static void main(String args[])
  {
    String s;int k;
    Scanner sc=new Scanner(System.in);
    k=sc.nextInt();
    s=sc.next();
    String s1[]=s.split("");
    if(s1.length<=k)
    {
     System.out.println(s);
    }
    else
    {
      for(int i=0;i<k;i++)
      {
        System.out.print(s1[i]+"");
      }
      System.out.println("...");
    }
  } main {
    String s;int k;
    Scanner sc=new Scanner(System.in);
    k=sc.nextInt();
    s=sc.next();
    String s1[]=s.split("");
    if(s1.length<=k)
    {
     System.out.println(s);
    }
    else
    {
      for(int i=0;i<k;i++)
      {
        System.out.print(s1[i]+"");
      }
      System.out.println("...");
    }
  } String s; s int k; k Scanner sc=new Scanner(System.in); sc new Scanner(System.in) k=sc.nextInt() k sc.nextInt() sc.nextInt sc s=sc.next() s sc.next() sc.next sc String s1[]=s.split(""); s1 s.split("") s.split s "" if(s1.length<=k)
    {
     System.out.println(s);
    }
    else
    {
      for(int i=0;i<k;i++)
      {
        System.out.print(s1[i]+"");
      }
      System.out.println("...");
    } s1.length<=k s1.length s1 s1.length k {
     System.out.println(s);
    } System.out.println(s) System.out.println System.out System System.out s {
      for(int i=0;i<k;i++)
      {
        System.out.print(s1[i]+"");
      }
      System.out.println("...");
    } for(int i=0;i<k;i++)
      {
        System.out.print(s1[i]+"");
      } int i=0; int i=0; i 0 i<k i k i++ i++ i {
        System.out.print(s1[i]+"");
      } {
        System.out.print(s1[i]+"");
      } System.out.print(s1[i]+"") System.out.print System.out System System.out s1[i]+"" s1[i] s1 i "" System.out.println("...") System.out.println System.out System System.out "..." String args[] args
import java.lang.*;
import java.util.*;
class Main
{
  public static void main(String args[])
  {
    String s;int k;
    Scanner sc=new Scanner(System.in);
    k=sc.nextInt();
    s=sc.next();
    String s1[]=s.split("");
    if(s1.length<=k)
    {
     System.out.println(s);
    }
    else
    {
      for(int i=0;i<k;i++)
      {
        System.out.print(s1[i]+"");
      }
      System.out.println("...");
    }
  }
}
