#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int sum = 0;
  int num;
  for (int i = 0; i < n; i++) {
    scanf("%d", &num);
    sum += num - 1;
  }
  cout << sum;
  return 0;
}
