import scala.collection.mutable.ArrayBuffer
import scala.io.StdIn

object Main extends App {
  val n = StdIn.readInt()
  val s = StdIn.readLine()
  if (s.length <= n) println(s) else println(s.take(n) + "...")


  def readIntPair: (Int, Int) = {
    val Array(x, y) = StdIn.readLine().split(" ").map(_.toInt)
    (x, y)
  }

  def readIntArr = StdIn.readLine().split(" ").map(_.toInt)
}




