#include <bits/stdc++.h>
int dataNum;
int modNum[3000];
int answer[1000000];
int main(void) {
  int n1 = scanf("%d", &dataNum);
  for (int i = 0; i < dataNum; i++) {
    int n2 = scanf("%d", &modNum[i]);
  }
  int max = -8;
  for (int j = 0; j < dataNum; j++) {
    max += modNum[j] - 1;
  }
  printf("%d\n", max);
  return 0;
}
