open Scanf;;
open Printf;;

let rint () = scanf " %d" (fun x -> x);;

let () =
  let n = rint () in
  let h = Array.init n (fun _ -> rint ()) in
  let i = ref 0 in
  let ans = ref 0 in
  while !i < n do
    let j = !i in
    while !i + 1 < n && h.(!i) >= h.(!i + 1) do
      incr i
    done;
    ans := max !ans (!i - j);
    incr i;
  done;
  printf "%d\n" (!ans);
               
