fun main(){
    val num = readLine()!!.toInt()
    val str = readLine()!!

    if(str.length <= num){
        println(str)
    }
    else{
        var cutStr = str.substring(0, num)
        cutStr += "..."
        println(cutStr)
    }
}