#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    int n;
    cin >> n;

    vector<int> a(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }

    ll s = 0;
    for (int i = 0; i < n; i++) {
        s += a[i];
    }
    cout << s << endl;

    return 0;
}