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