#include using namespace std; int main() { int n; int i; int a[500000]; long sum; cin >> n; for (i = 0; i <= n; ++i) { cin >> a[i]; sum += a[i]; } cout << sum << endl; }