#28846: python 一行解


jeter.nice@gmail.com (唯一)


print(sum([i*j for i,j in zip(range(1,int(input())+1),map(int,input().split()))]))