n = int(input()) ans = sum([int(input()) for _ in range(n)]) print(ans)