import java.util.*

fun main(args: Array<String>) {
  val n = readLine()!!.toInt()
  val row = readLine()!!.split(" ").map { it.toInt() }.toList()
  
  var num = 0
  val list = mutableListOf<Int>()

  row.reduce {a,b ->
    if(a >= b) {
      num++
    } else {
      list.add(num)
      num = 0
    }
    b
  }
  list.add(num)
  println(list.max())   
}
