// abc139-c
object Main extends App {
  val n = io.StdIn.readInt
  val hs = io.StdIn.readLine.split(" ").map(_.toInt)

  def solve(list: List[Int], prev: Int, tmp_count: Int, count: Int): Int = list match {
    case head::Nil  => {
      if (prev >= head) math.max(tmp_count+1, count)
      else math.max(tmp_count, count)
    }
    case head::tail => {
      if (prev >= head) solve(tail, head, tmp_count+1, math.max(tmp_count, count))
      else solve(tail, head, 0, math.max(tmp_count, count))
    }
  }

  val result = solve(hs.toList, 0, 0, 0)
  println(result)
}