#include <iostream>

using namespace std;

int main()
{
    int N;
    cin >> N;

    int a;
    int sum = 0;
    for (i = 0; i < N; i++) {
        cin >> a;
        sum += a-1;
    }

    cout << sum << endl;
}