function Main(input) {
	input = input.split("\n");
	const N = parseInt(input[0])
	const Hs = input[1].split(" ").map(x => parseInt(x))
	var now = 0
	var max = 0
	for(i=1; i < N; i++){
		if(Hs[i-1] >= Hs[i]){
			now++
		}else{
			if(now > max) max = now
			now = 0
		}
	}
  	if(now > max) max = now
	console.log(max)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));