#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vb = vector<bool>;
using vc = vector<char>;
using vs = vector<string>;
using vvi = vector<vector<int>>;
using vvc = vector<vector<char>>;
using pii = pair<int, int>;
int main() {
  int n;
  cin >> n;
  long answer = 0;
  long tmp;
  for (int i = 0; i < (int)(n); i++) {
    cin >> tmp;
    answer += tmp;
  }
  cout << answer << endl;
}
