import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val k = sc.nextInt()
  val s = sc.next()

  val result = if(k < s.length) s.take(k) + "..." else s
  println(result)
}
