#include<bits/std<c++.h>
using namespace std;
typedef long long int;
int main()
{
    ll n,ans=0;
    ll a[100000]
    for(i=0;i<n;i++)
    {
        cin>>a[i];
        ans+=a[i]-1;
    }
    cout<<ans
    return 0;
}
