import Foundation

func main() {
	let n = Int(readLine()!)!
	let inputString = readLine()!
	var split: [Int] = inputString.components(separatedBy: " ").map{Int(String($0))!}
	print(split.reduce(0) { $0 + $1 } - n)
}

main()