
fun main(args: Array<String>) {
    val limit = readLine()!!.toInt()
    val origin = readLine()!!

    fun omitString(origin: String, limit: Int): String = if (origin.length > limit) origin.take(limit) + "..." else origin
    
    println(omitString(origin, limit))
}
