N = int(input())
goods = []
for i in range(N):
  goods.append(int(input()))
print(sum(goods))