import math, sequtils, strutils let _ = readLine stdin a = stdin.readLine.split.map parseInt v = parseInt readLine stdin echo a.sum - v