import java.util.*

fun main() {

    val scanner = Scanner(System.`in`)

    val inputNum = scanner.nextInt()
    val inputString = scanner.next()

    if(inputString.length > inputNum) {
        val cutString = inputString.substring(0, inputNum)
        println("$cutString...")
    } else {
        println(inputString)
    }
}