main :: IO ()
main = do
  _n <- (read :: String -> Int) <$> getLine
  hs <- fmap (read :: String -> Int) . words <$> getLine
  print $ snd $ foldr acc (0,0) $ zipWith (>=) hs (tail hs)
    where
      acc a (m, c) = if a then (m, c+1) else (max m c, 0)
