function main(input) {
  const k = parseInt(input[0]);
  const s = input[1];

  console.log((k>=s.length)?(s):(s.substr(0,k)+"..."));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));