import sys def resolve(in_): N = int(next(in_)) A = tuple(map(int, next(in_).split())) assert N == len(A) ans = sum(A) return ans def main(): ans = resolve(sys.stdin.buffer) print(ans) if __name__ == '__main__': main()