#include using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ long long n,sum,a[500000]; int main(void) { cin>>n; for(int i=0; i>a[i]; sum += a[i]; } cout<