const Main = ipt => {
  const [ k, S ] = ipt.split('\n');
  const K = Number(k);
  if(S.length <= K) {
    console.log(S)
    return;
  }
  else {
    console.log(`${S.slice(0,K)}...`);
    return;
  }
};

Main(require('fs').readFileSync('/dev/stdin', 'utf8'))

/*Main(`7
nikoandsolstice`)*/
