n=int(input())
total=(list(map(int,input().split())))
sum=0
for i in range(n):
sum+=total[i]*(i+1)
print(sum)