#include #include using namespace std; int main(int argc, char* argv[]) { int N; cin>>N; int i; vector A(N); for (i=0;i>A[i]; } int ans=0; for (i=0;i=A[i+1]&& A[i+1]>=A[i+2] || A[i]==A[i+1] || A[i+1]==A[i+2] || A[i]==A[i+2]){ }else{ cout<