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