from collections import defaultdict

def readInt():

  return int(eval(input()))

def readInts():

  return list(map(int, input().split()))

def readChar():

  return eval(input())

def readChars():

  return input().split()



n = readInt()

a = readInts()



ma = max(a)

ans = 0

seki = 1

for i in a:

  seki*=i



for i in a:

  ans += (seki-1)%i



print(ans)
from collections import defaultdict

def readInt():

  return int(eval(input()))

def readInts():

  return list(map(int, input().split()))

def readChar():

  return eval(input())

def readChars():

  return input().split()



n = readInt()

a = readInts()



ans = 0

for i in a:

  ans+=i-1

print(ans)
from collections import defaultdict


def readInt():
    return int(eval(input()))


def readInts():
    return list(map(int, input().split()))


def readChar():
    return eval(input())


def readChars():
    return input().split()


n = readInt()
a = readInts()
ma = max(a)
ans = 0
seki = 1
for i in a:
    seki *= i
for i in a:
    ans += (seki - 1) % i
print(ans)

from collections import defaultdict


def readInt():
    return int(eval(input()))


def readInts():
    return list(map(int, input().split()))


def readChar():
    return eval(input())


def readChars():
    return input().split()


n = readInt()
a = readInts()
ans = 0
for i in a:
    ans += i - 1
print(ans)

-ma = max(a) -seki = 1 -    seki *= i -for i in a: -    ans += (seki - 1) % i +    ans += i - 1