fun main(args: Array<String>) {
    val length = readLine()!!.toInt()
    val input = readLine()!!
    println(
        if (input.length > length) {
            "${input.substring(0 until length)}..."
        } else {
            input
        }
    )
}