#include const int DIM = (1 << 12); char buff[DIM]; int poz = 0; void read(int &numar) { numar = 0; while (buff[poz] < '0' || buff[poz] > '9') if (++poz == DIM) fread(buff, 1, DIM, stdin), poz = 0; while ('0' <= buff[poz] && buff[poz] <= '9') { numar = numar * 10 + buff[poz] - '0'; if (++poz == DIM) fread(buff, 1, DIM, stdin), poz = 0; } } int main(void) { int n, x; long long sum = 0; freopen("parse.in", "r", stdin); read(n); for (int i = 0; i < n; i++) { read(x); sum += x; } printf("%lld\n", sum); }