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