#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"n = int(input())\n"
"a = list(map(int, input().split()))\n"
"for i in range(n):\n"
"    a[i] -= 1\n"
"print(sum(a))\n"
"\"";
  system(s);
  return 0;
}            