#include <iostream>using namespace std;
int main(){ int n; int amount; int Money = 0; cin >> n; for (int i=1;i<=n;++i){ cin >> amount; Money += amount * i; } cout << Money; return 0;}