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

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine

main = do
    n <- getInt
    hs <- getIntList
    let dh = zipWith (-) hs (tail hs)
    if n == 1
        then print 0
        else print . maximum . map length . group $ map pm dh

pm x | x >= 0 = True
     | otherwise = False