#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5+5;

int n,h[N],ans;

int main(){
	cin>>n;
	for(int i=1,cnt=1;i<=n;++i){
		cin>>h[i];
		if(h[i]<=h[i-1])cnt++;
		else cnt=1;
		ans=max(ans,cnt-1);
	}
	cout<<ans<<endl;
} 