#include int main(void){ long long i,n,a[500000],ans; scanf("%lld",&n); for(i=1;i<=n;i++){ scanf("%lld\n",&a[i]); ans += a[i]; } printf("%lld\n",ans); return 0; }