#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = (1 << 28);
int n;
int vector<int> v;
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> x;
    for(int i=0;i<n;i++) {
        int a;
        cin>>a;
        v.push_back(a);
    }
    int ans=0;
    for(int i=0;i<n;i++){
        ans+=v[i];
        ans--;
    }

    cout << ans<< "\n";
}