// Arup Guha
// 6/15/2023
// Solution to SIUCF CP Contest 2 Problem: Jumbo Javelin
// https://open.kattis.com/problems/jumbojavelin

using namespace std;
#include <iostream>

int main() {

    int n, total = 0, tmp;
    cin >> n;

    // Add the numbers.
    for (int i=0; i<n; i++) {
        cin >> tmp;
        total += tmp;
    }

    // You lose length n-1...
    cout << total - n + 1 << endl;

    return 0;
}
