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