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