#include <iostream>
#include <string>

using namespace std;

int main() {
    int N, A;
    cin >> N;
    long long sum = 0;
    for (int i = 0; i < N; i++) {
        cin >> A;
        sum += A;
    }
    cout << sum << endl;
}