import system, macros, algorithm, tables, sets, lists, queues, intsets, critbits, sequtils, strutils, math, future

var
  n = stdin.readLine.parseInt
  a = stdin.readLine.split.map(parseInt)
  result = 0
  
for i in a:
  result += i - 1

echo result