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