function Main(input) {
    input = input.split("\n");
    const result = input[1].slice(0,input[0])
    if(result == input[1]) return result;
    else return result + "..."
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))