
object Main extends App {
  
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  val h = Array.fill(n)(sc.nextLong()).reverse
  var max = 0
  var cnt = 0
  for (i <- 0 until n - 1) {
    if (h(i) <= h(i+1)) {
      cnt += 1
    } else {
      if (cnt > max) {
        max = cnt
      }
      cnt = 0
    }
  }
  println(max)
  
}