#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 7;
const int MX = 1e9 + 7;
const long long int INF = 1e18 + 7LL;
int main() {
  int n;
  cin >> n;
  int sum = 0;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    sum += a;
  }
  cout << sum;
  return 0;
}
