let n = Int(readLine()!)! let a = readLine()!.split(separator:" ").map { Int($0)! } print(a.reduce(0,+))