// inputに入力データ全体が入る
function Main(input) {
    // 1行目がinput[0], 2行目がinput[1], …に入る
    input = input.split("\n");
    // 数値の配列を作る
    const numList0 = input[0].split(' ').map(x => parseInt(x, 10));
    const N = numList0[0];
    const hList = input[1].split(' ').map(x => parseInt(x, 10));

    var count = 0;
    var max = 0;
    var current = hList[0];
    var next = NaN;
    for (var i = 1; i < N; i++) {
        next = hList[i];
        if (current >= next) {
            count++;
        } else {
            max = Math.max(count, max);
            count = 0;
        }
        current = next;
    }
  	max = Math.max(count, max);

    console.log(max);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));