function Main(input) {
  input = input.split("\n");
  var N = input[0];
  var H = input[1].split(" ").map(Number);
  var Maxcount = 0;
  var combo = 0;
  for( var i = 1 ; i < N ; i++){
    
    if(H[i] <= H[i-1]){
	combo ++;
      if(combo >=Maxcount){
        Maxcount = combo;
      }
  }else{
        combo = 0;
      }
  }
console.log(Maxcount);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));