#include <iostream>using namespace std;int main() { int a,t=0,b,i=1; cin>>a; while (i<=a) { cin>>b; t+=b*i; i++; } cout<<t;}