#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int ans = 0;
  int x;
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &x);
    ans += x * i;
  }
  printf("%d", ans);
  return 0;
}
