var input = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')
var K = parseInt(input[0])
var S = input[1]
var ans = (() => {
  if (K < S.length) {
    return S.substring(0, K) + '...'
  }
  return S
})()
console.log(ans)
