#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
const int N = 100000 + 5;
const int M = 1000 + 5;
const int K = 1e7 + 5;
const int MOD = 1e9 + 7;
const int inv2 = 500000004;
const int LOG = 40;
const unsigned long long BASE = 19260817;
const int dx[] = {0, 1, -1, 0, 1, -1, 1, -1};
const int dy[] = {1, 0, 0, -1, 1, -1, -1, 1};
const double PI = acos(-1);
template <typename T>
inline bool chkmin(T &a, const T &b) {
  return a > b ? a = b, 1 : 0;
}
template <typename T>
inline bool chkmax(T &a, const T &b) {
  return a < b ? a = b, 1 : 0;
}
template <class T>
inline T readT() {
  T res = 0, f = 1;
  char ch = getchar();
  for (; !isdigit(ch); ch = getchar())
    if (ch == '-') f = -1;
  for (; isdigit(ch); ch = getchar()) res = (res << 1) + (res << 3) + ch - '0';
  return res * f;
}
int n, x, ans;
int main() {
  n = readT<int>();
  for (int i = 1; i <= n; i++) {
    x = readT<int>();
    ans += x;
  }
  printf("%d\n", ans);
  return 0;
}
