main = getContents >>= print . solve 0 0 0 . tail . map read . words

solve ans _ _ [] = ans
solve ans cnt prv (h:hs) =
  if prv >= h
  then solve (max ans (cnt + 1)) (cnt + 1) h hs
  else solve ans 0 h hs