from sys import stdin print(sum([int(stdin.readline()) for _ in range(int(stdin.readline()))]))