import java.util.Scanner;

fun main (args : Array<String>) {
  val input = Scanner(System.`in`)
  
  while (input.hasNext()) {
    val K = input.nextInt()
    val S = input.next()
    
    if (S.length <= K) {
      println(S)
    } else {
      println("${S.substring(0, K)}...")
    }
  }
}