#include <iostream>
using namespace std;

int main (){
	int n, m, x=0, y=0, z=0;
	
	cin >> n;
	for (int i=0; i<n; i++){
		cin >> m;
		if (m<=x){
			y = y+1;
			if (y>z) z=y;
		}
		else if (m>x) y=0;
		x=m;
	}
	
	cout << z << endl;
	
	return 0;
}