// C - Lower
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main(){
	int N; cin>>N;
	ll ans = 0;
	ll count = 0;
	int pre, now; cin>>pre;;
	for(int i=1; i<N; ++i){
		cin>>now;
		ans = max(ans, (count = pre>=now? count+1: 0));
		pre = now;
	}
	cout<< ans <<endl;
}