import Control.Monad
import qualified Data.ByteString.Char8 as BS
import Data.Maybe

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words

getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine

tryMove :: [Int] -> [Int]
tryMove [] = []
tryMove (h : hs) = len : tryMove hs'
  where
    len = length (takeWhile (<= h) hs)
    hs' = dropWhile (<= h) hs

main = do
  n <- getInt
  hs <- getIntList
  print $ maximum (tryMove hs)
