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