import java.util.Scanner

import scala.io.StdIn._
object Main extends App {

  val k = scala.io.StdIn.readInt()
  val s = scala.io.StdIn.readLine()

  def solve() = {
    if(s.length <= k) s else s.take(k) + "..."
  }

  println(solve())

}

