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