#42061: ITS SO GODDAMN SIMPLE BRO


dinson1007@gmail.com (Among us peter Huang)


#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;
}