'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
  
  for(let i=0; i<N-1; i++) {
    let count = 0
    for(let j=i; j<N-1; j++) {
      if(H[j] < H[j+1]) {
        if(count > max) {
          max = count
        }
        break
      }
      count++
      if(j === N - 2) {
        console.log(count)
        return
      }
    }
  }
  
  console.log(max)
}

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