fs = require('fs');
input = fs.readFileSync('/dev/stdin','utf-8');
tmp = input.split('\n');
K = tmp[0];
S = tmp[1];
if(S.length <= K) {
  console.log(S);
} else {
  console.log(S.substring(0,K) + '...');
}
