print(sum([int(input()) for i in range(int(input()))]))