#include <bits/stdc++.h>

using namespace std;

#define mp make_pair
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define f1(i, n) for(int i=1;i<=n;i++)
#define f0(i, n) for(int i=0;i<n;i++)
#define ldb ldouble
#define inf 9999999999999999
#define mod 998244353
//#define mod 1000000007
#define int ll

typedef long long ll;
typedef unsigned long long ull;
typedef double db;
typedef long double ldb;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
typedef pair <ll, int> pli;
typedef pair <db, db> pdd;

//**Start here**//

///declaration///

//library structure//
int a[100005],b[15][15],cnt[100005];
vector <int> g[15];

//variables//
int n,m,X,Y,ans=0;

//data structure//

///function///
//preset//

//input//
void input()
{
    cin >> n;
    for (int i=1;i<=n;++i)
    {
        cin >> a[i];
        ans+=a[i]-1;
    }
    cout << ans;
    return;
}

//algorithm//

//solve//
void solve()
{

    return;
}

//output//
void output()
{

    return;
}

///main///
signed main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
	//freopen("test.INP","r",stdin);
    //freopen("test.OUT","w",stdout);
    /*int test;
    cin >> test;
    for (int k=1;k<=test;++k)*/
    {
        input();
        solve();
        output();
    }
    return 0;
}

/**code-by-@datr1bs**/
