#include using namespace std; int main(){ int n,flag; flag=0; vector v; int a[1000]={0}; cin>>n; for(int i=0;i>tmp; v.push_back(tmp); } if(n>2){ a[1]=v.at(0); a[2]=max(v.at(0),v.at(1)); for(int i=3;i