#29816: python 簡單的解答


422596@st.tc.edu.tw (殤)


a=int(input())

d=0

b=list(input().split())

for c in range(a):

    d=d+int(b[c])*(c+1)

print(d)