const { readFileSync } = require('fs');
const a = readFileSync('/dev/stdin', 'utf8').split('\n');
if (a[1].length > +a[0]) {
  console.log(`${a[1].substring(0, +a[0])}...`);
} else {
  console.log(a[1]);
}
