#include<stdio.h> main() { int n,i=1,a,b=0; scanf("%d\n",&n); while(i<n) {scanf("%d ",&a); b=b+a; i++;} printf("%d",b);