'use strict'

function main(input) {

  const nums = input.split('\n')[1].split(' ').map(n => Number(n));

  const ans = nums.reduce((acc, cur, idx) => acc + (cur - 1), 0);

  console.log(ans);
}

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