object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val Array(datK) = readLine.split(" ").map(_.toInt)
    val datS = readLine

    val ans =
      if (datS.length() <= datK) datS
      else datS.take(datK) + "..."
    println(ans)
  }
}
