# -*- coding: utf-8 -*-

# 整数の入力

n = int(input())

# スペース区切りの整数の入力

l = list(map(int, input().split()))



c = 1

for a in l:

	c=c*a



ret= sum([(c-1)%a for a in l])

print(ret)

# -*- coding: utf-8 -*-

# 整数の入力

n = int(input())

# スペース区切りの整数の入力

l = list(map(int, input().split()))



ret= sum([(a-1) for a in l])

print(ret)
# -*- coding: utf-8 -*-
# 整数の入力
n = int(input())
# スペース区切りの整数の入力
l = list(map(int, input().split()))
c = 1
for a in l:
    c = c * a
ret = sum([(c - 1) % a for a in l])
print(ret)

# -*- coding: utf-8 -*-
# 整数の入力
n = int(input())
# スペース区切りの整数の入力
l = list(map(int, input().split()))
ret = sum([(a - 1) for a in l])
print(ret)

-c = 1 -for a in l: -    c = c * a -ret = sum([(c - 1) % a for a in l]) +ret = sum([(a - 1) for a in l])