import sys
import math
import numpy as np
import itertools


# ひとつ入力
n = int(input())
# リストに入れる
a = [int(i) for i in input().split()] 
answer=0
for i in range(n):
    answer += (a[i]-1)

print(answer)

