import scala.io.StdIn
object Main extends App {
  val N = StdIn.readLine().toInt
  val h = StdIn.readLine().split(" ").map(_.toInt).toList
  var answer = 0
  for {
    List(a,b) <- h.grouped(2)
    answer = answer.max(if (a <= b) val += 1 else 0)

}
