#include #define N 500000 int main(int argc, char *argv[]){ int n; long int tmp = 0; long int sum = 0; scanf("%d",&n); for (int i = 0; i < n; i++) { scanf("%ld",&tmp); sum += tmp; } printf("%ld\n",sum); }