#include <iostream>using namespace std;int main(){ int n,i,a,sum=0; cin >> n; for (i=1; i<=n; i++){ cin >> a; sum += a*i; } cout << sum << endl; return 0;}