'use strict'
const main = input => {
  const n = parseInt(input[0]), h = input[1].split(' ').map(val => parseInt(val, 10));
  let num = 0, ans = 0;
  for(let i = 0; i < n - 1; i++){
    if (h[i] >= h[i+1]) {
      num++;
    } else {
      num = 0;
    }
    if (ans < num) {
      ans = num;
    }
    // console.log(num);
    
  }
  console.log(ans);
  
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));