// Arup Guha
// 6/5/2023
// Alternate Solution to Kattis Problem N-sum to illustrate while loop.

using namespace std;
#include <iostream>

int main() {

    int n, tmp, total = 0;

    cin >> n;

    // Will run n times. Add values into accumulator.
    while (n--) {
        cin >> tmp;
        total += tmp;
    }

    cout << total << endl;
    return 0;
}
