let inpt = Int(readLine()!)! let total = readLine()!.split(separator: " ").map{Int($0)!}.reduce(0){$0+$1} let tmp = Int(readLine()!)! let ans = total - tmp print(ans)