#include<bits/stdc++.h>
using namespace std;
int sub(int a[] , int len)
{
if(len == 0)
return 0;
if(a[len-1]<a[len-2])
return 0;
return max(1+sub(a , len-1) , sub(a , len-2));
}
int main()
{
int len;
cin>>len;
int a[len];
for(int i = 0;i<=len-1;i++)
{
cin>>a[i];
}
int m = sub(a , len);
cout<<m;
}``[LINK TO THE PROBLEM](https://mirror.codeforces.com/problemset/problem/702/A)``