fun main (args:Array<String>){
    val lenPoint = readLine()!!.toInt()
    val s = readLine()!!
    if(s.length <= lenPoint){
        print(s)
        return
    }
    print(s.substring(0,lenPoint)+"...")
}