#!/usr/bin/env python

import sys
import math
import itertools as it
from collections import deque

sys.setrecursionlimit(10000000)

_ = input()
A = map(int, raw_input().split())
sz = len(A)

print sum(A) - sz
