import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val K = sc.nextInt
  sc.nextLine
  val S = sc.nextLine

  val z = if (S.length <= K) S else S.take(K) + "..."
  println(z)
}
