function Main(input){
var N = input.split("\n")[0];
N = parseInt(N,10);
var H = input.split("\n")[1].split(" ");
var count = 0;
var memo = 0;
for(i=0;i<=(N-1);i++){
  var a = parseInt(H[i],10) >= parseInt(H[i+1],10);
  if(a == true){
    count += 1;
  }else{
    var b = count >= memo;
    if(b==true){
      memo = count;
      count = 0;
    }else{
      count = 0;
    }
  }
}
console.log(memo);
}
  Main(require('fs').readFileSync('/dev/stdin','utf8'));