from sys import stdin N = int(input()) A = [int(stdin.readline()) for i in range(N)] print(sum(A))