N = int(input()) i = 1 list_A = [] while i <= N: A = int(input()) list_A.insert(i,A) i = i + 1 S = sum(list_A) print(S)