#include <bits/stdc++.h>
using namespace std;
long long n, ans, x;
int main() {
  cin >> n;
  ans = 0;
  for (int i = 1; i <= n; ++i) {
    cin >> x;
    ans += i * x;
  }
  cout << ans << endl;
  return 0;
}
