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