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