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