#import <Foundation/Foundation.h>
int main() {
	long n;
	scanf("%ld",&n);
	long ans=0, prev=0, s=0;
	for(long i=0;i<n;i++){
		long h;
		scanf("%ld",&h);
		if(prev<h) s=i;
		ans=MAX(ans,i-s);
		prev=h;
	}
	printf("%ld\n",ans);
}