#include <iostream>
using namespace std;
typedef long long
int main(void){
    // Your code here!
    ll n;
    ll ans=0;
    cin>>n;
    for(int i=0;i<n;i++){
        int a;
        cin>>a;
        ans+=a;
    }
    cout<<ans-n<<endl;
}
