function Main(input) {
    input = input.split("\n");
    const a = input[1].split(" ").map(Number);
    const sum = (p, q) => p + q;
    console.log(a.reduce(sum) - input[0]);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));