function Main(input) {
    var N = parseInt(input[0], 10);
    var H = input.slice(1).map(h => parseInt(h, 10));

    var max = 0;
    var len = 0;

    for (i = 1; i < N; i++) {
        if (H[i - 1] >= H[i]) {
            len++;
            max = max < len ? len : max;
        } else {
            len = 0;
        }
    }
    console.log(max);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));