#include <iostream>
using namespace std;
int main() { int n,num1 = 1,num2,sum = 0; cin >> n; int i = 0; while(i < n){ cin >> num2; sum = sum + num2 * num1; num1++; i++; } cout << sum << endl;}