object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt
  val (h :: hh) = Seq.fill(n)(sc.nextInt).reverse

  val (max, _, _) = hh.foldLeft((0, 0, h)) {
    case ((max, count, before), h) =>
      if (h >= before) {
        if (count + 1 > max) {
          (count + 1, count + 1, h)
        } else {
          (max, count + 1, h)
        }
      } else {
        (max, 0, h)
      }
  }

  println(max)
}