const main = H => {
    const r = []
    for(var i = 0;i<H.length;i++) {
        var count = 0
        for(var j = i+1;j<H.length;j++) {
            var c = H[j-1]
            if(c >= H[j]) {
                count++
            }else{
                break
            }
        }   
        r.push(count)
    }
    return r
}



const input = require('fs').readFileSync('/dev/stdin','utf8').split('\n')
const H = input[1].split(" ").map( x => Number(x))
console.log(Math.max(...main(H)))