fun main(){
    val k = readLine()!!.split(" ").map { it.toInt() }[0]
    val s = readLine()!!.split(" ")[0]
    val ssize = s.length
    if (k >= ssize){
        println(s)
    } else {
        val ans = s.subSequence(0, k)
        println("${ans}...")
    }
}