import java.util.Scanner

object Main extends App{

  val sc = new Scanner(System.in)

  val n = sc.nextInt
  val hs = Seq.fill(n)(sc.nextInt)

  val res = hs.tail.foldLeft((0, 0, hs.head)){ case ((max, cons, pre), h) =>
    val newCons = if (pre >= h) cons + 1 else 0
    (Math.max(max, newCons), newCons, h)
  }._1

  println(res)
}