const main = function(input){
  var nums = input.split("\n")[1].split(" ").map(i=>parseInt(i));
  var len = nums.length;
  var ans = nums.reduce((s,i)=>s+(i-1))-1;
  console.log(ans);
  
 
}


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