from functools import reduce N = int(input()) As = [ int(input()) for _ in range(N) ] print(reduce(lambda a, x: a + x, As, 0))