#include <stdio.h> int main() { int n; int a; int sum; scanf("%d",&n); while(scanf("%d",&a)!=EOF){ sum+=a; } printf("%d",sum); return 0; }
#include <stdio.h> int main() { int n; int a; int sum; scanf("%d",&n); while(scanf("%d",&a)!=EOF){ sum+=a; } printf("%d",sum); return 0; }