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