function Main(input) {
  input = input.split("\n");
  tmp = input[0].split(" ");
  height = input[1].split(" ");
  var j=0;
  var step = [0];
  var answer = 0;
  for(var i=0; i<tmp[0]-1; i++){
    if(Number(height[i]) >= Number(height[i+1])){
      step[j]++;
    }else{
      if(step[j]>answer){
        answer = step[j];
      }
      j++;
      step[j] = 0;
    }
  }
  if(step[j]>answer){
    answer = step[j];
  }
  console.log(answer);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));