#include <bits/stdc++.h>
using namespace std;
int ctoi(char c) {
  if (c >= '0' && c <= '9') {
    return c - '0';
  }
  return 0;
}
int fact(int64_t x) {
  int64_t y = 1;
  if (x == 0) {
    return 1;
  } else {
    for (int64_t i = 1; i <= x; i++) {
      y *= i;
      y %= 1000000007;
    }
    return y;
  }
}
int64_t modinv(int64_t a, int64_t m) {
  int64_t b = m, u = 1, v = 0;
  while (b) {
    int64_t t = a / b;
    a -= t * b;
    swap(a, b);
    u -= t * v;
    swap(u, v);
  }
  u %= m;
  if (u < 0) u += m;
  return u;
}
int combi(int64_t n, int64_t r) {
  int64_t z = (fact(n - r) * fact(r)) % 1000000007;
  return fact(n) * modinv(z, 1000000007) % 1000000007;
}
int main() {
  int64_t n;
  cin >> n;
  vector<int64_t> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a.at(i);
  }
  int64_t sum = 0;
  for (int i = 0; i < n; i++) {
    sum += a.at(i);
  }
  cout << sum;
}
