const input = require("fs").readFileSync("/dev/stdin", "utf8")
const lines = input.split('\n')
const K = lines[0] - 0
const S = lines[1]

if (K < S.length) {
    console.log(S.substring(0, K) + "...")
} else {
    console.log(S)
}