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