#include<stdio.h> int main() { int i,n,m,sum=0; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&m); sum = sum+m; } printf("sum is %d\n",sum); return 0; }