#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
ssize_t read;
char *line = NULL;
size_t len = 0;
int sum = 0;
while (read = getline(&line, &len, stdin) != -1) {
sum += atoi(line);
}
printf("%i", sum);
return 0;
}