#34752: python 超簡單寫法


1554101-0@g.puiching.edu.mo (P6A29_1300題了)


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