"use strict"

function main(input) {

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

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