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