#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, i, sum;
  cin >> n;
  vector<int> a(n);
  for (i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i] - 1;
  }
  cout << sum << endl;
}
