import java.util.*

fun main() {
  val sc = Scanner(System.`in`)
  val n = sc.nextInt()
  val s: String = sc.next()
  
  if (s.length <= n) {
    println(s)
  } else {
    println("${s.substring(0, n)}...")
  }
}