object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val x :: xs = List.fill(sc.nextInt())(sc.nextInt())
  val (_, _, max) = xs.foldLeft((x, 0, 0)) {
    case ((step, count, max), next) if next <= step =>
      (next, count + 1, max.max(count + 1))
    case ((_, _, max), next) =>
      (next, 0, max)
  }
  println(max)
}