'use strict'

function Main(input) {
  const N = Number(input.split("\n")[0])
  const H = input.split("\n")[1].split(" ").map(x => Number(x))
  let max = 0
  let count = 0
  
  for(let i=0; i<N-1; i++) {
    if(H[i] >= H[i+1]) {
      count++
      if(i === N-2) {
        max = Math.max(max, count)
      }
    } else {
      max = Math.max(max, count)
      count = 0
    }
  }

  console.log(max)
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim())
