function main(input) {
  const N = Number(input.split("\n")[0]);
  const H = input.split("\n")[1].split(" ");
  var max = 0;
  var count = 0;
  for(var i=0; i<N-1; i++){
    if(Number(H[i]) >= Number(H[i+1])){
      count++;
      
    }else{
      if(max < count){
        max = count;
      }
      count = 0;
    }
  }
  if(max < count){
    max = count;
  }
  // 2,3,5,3,5,6,8,8,5,3,6,8,9
  //  0 0 1 0 0 0 1 1 1 0 0 0
  console.log(max);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
