object Main extends App {
  readInt
  println( readLine.split(" ").map(_.toInt).scanLeft((0, 0))(
    {case((v1,r),v2) => (v2, if(v1>=v2) r+1 else 0)}: Function2[(Int,Int),Int, (Int,Int)]
  ).map(_._2).max )
}