#include <bits/stdc++.h>
using namespace std;
int gcd(long long a, long long b) {
  if (a < b) {
    int tmp = a;
    a = b;
    b = tmp;
  }
  long long r = a % b;
  while (r != 0) {
    a = b;
    b = r;
    r = a % b;
  }
  return b;
}
int main() {
  int n;
  cin >> n;
  int a[n];
  int ans = 0;
  for (int(i) = 0; (i) < (int)(n); ++(i)) {
    cin >> a[i];
    ans += a[i];
  }
  cout << ans << endl;
  return 0;
}
