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