function Main(input) {
  const inputs = input.split('\n')
  const K = Number(inputs[0])
  const S = inputs[1]
  console.log(S.substr(0, K) + (S.length > K ? '...' : ''))
}


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