#include using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define ALL(a) (a).begin(),(a).end() int main(){ int n;cin>>n; vector a(n); REP(i,n){ cin>>a[i]; } int res=0; int sub[3]={a[0],a[1],a[2]}; cerr<sub[2]) or (sub[0]>sub[1] and sub[1]sub[2]) or (sub[0]>sub[1] and sub[1]