const main = input => {
  const lines = input.trim().split("\n")
  const k = Number.parseInt(lines[0])
  const s = lines[1]
  return s.slice(0, k) + (s.length > k ? "..." : "")
}
console.log(main(require('fs').readFileSync('/dev/stdin', 'utf8')))