#include int main(void) { int a[5000]; int sum = 0; int n; scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%d", &a[i]); for (int i = 0; i < n; i++) sum += a[i]; printf("%d\n", sum); return 0; }