def c_modulo_summation(N, A):

    ans = 0

    for a in A:

        ans += a-1

    return ans



N = int(eval(input()))

A = [int(i) for i in input().split()]

print((c_modulo_summation(N, A)))
def c_modulo_summation(N, A):

    return sum(a-1 for a in A)



N = int(eval(input()))

A = [int(i) for i in input().split()]

print((c_modulo_summation(N, A)))
def c_modulo_summation(N, A):
    ans = 0
    for a in A:
        ans += a - 1
    return ans


N = int(eval(input()))
A = [int(i) for i in input().split()]
print((c_modulo_summation(N, A)))

def c_modulo_summation(N, A):
    return sum(a - 1 for a in A)


N = int(eval(input()))
A = [int(i) for i in input().split()]
print((c_modulo_summation(N, A)))

-    ans = 0 -    for a in A: -        ans += a - 1 -    return ans +    return sum(a - 1 for a in A)