import scala.io.StdIn
object Main extends App {
  val N = StdIn.readLine().toInt
  val h = StdIn.readLine().split(" ").map(_.toInt).toList
  var answer = 0
  var m = h.head
  var max = 0
  val subList = h.tail.map{n => val sub = n - m; m = n; sub}
  var streak = 0
  for (n <- subList) {
    if (n <= 0) {
      streak += 1
    } else {
      streak = 0
    }
    if (streak > max) max = streak
  }
  println(max)
}
