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