#include #include #define BUF_SIZE 4096 char buf[BUF_SIZE]; int pos = BUF_SIZE; FILE *f; inline char getChar() { if (pos == BUF_SIZE) { fread(buf, 1, BUF_SIZE, f); pos = 0; } return buf[pos++]; } inline int read() { int result = 0; char c; do { c = getChar(); } while (!isdigit(c)); do { result = 10 * result + c - '0'; c = getChar(); } while (isdigit(c)); return result; } int main(void) { int n; long long sum = 0; f = fopen("parse.in", "r"); n = read(); for (int i = 0; i < n; i++) { sum += read(); } printf("%lld\n", sum); }