#include<iostream>
using namespace std;
signed main(){
    int64_t n;
    cin>>n;
    int64_t sum = 0ll;
    sum -= n*(n+1)/2;
    while(n--){
        int64_t ai;
        cin>>ai;
        sum += ai;
    }
    cout<< sum <<endl;
}
