
"use strict"

function main(input) {

    input = input.split('\n')
    let n = +input[0];
    let ans = 0;
    let a = input[1].split(" ").map(x => ans += Number(a))
    console.log(a - n);

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