#include <ctype.h>
#include <stdio.h>

#define BUF_SIZE 4096
char buf[BUF_SIZE];
int pos = BUF_SIZE;

inline char getChar(FILE *f) {
  if (pos == BUF_SIZE) {
    fread(buf, 1, BUF_SIZE, f);
    pos = 0;
  }
  return buf[pos++];
}

inline int read(FILE *f) {
  int result = 0;
  char c;
  do {
    c = getChar(f);
  } while (!isdigit(c));

  do {
    result = 10 * result + c - '0';
    c = getChar(f);
  } while (isdigit(c));

  return result;
}

int main(void) {
  int n;
  long long sum = 0;
  FILE *f = fopen("parse.in", "r");
  n = read(f);
  for (int i = 0; i < n; i++) {
    sum += read(f);
  }
  printf("%lld\n", sum);
}