from functools import reduce N = int(input()) As = map(int, input().split()) print(reduce(lambda a, x: a + x, As, 0))