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