#include using namespace std; int n,v[32002]; int main() { int i,s=0; cin>>n; for(i=1; i<=n; i++) cin>>v[i]; for(i=1; i