"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0]);
    const H = arg[1].split(" ").map(n=>parseInt(n));
    
    let answer = 0;
    let cnt = 0;
    
    for(let i=1; i<N; i++) {
        // 増えたらリセット
        if(H[i-1] < H[i]) {
            answer = Math.max(answer, cnt);
            cnt = 0;
        } else {
            cnt++;
        }
    }
    
    answer = Math.max(answer, cnt);
    
    console.log(answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));