import std.algorithm;
import std.array;
import std.container;
import std.conv;
import std.math;
import std.numeric;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void scan(T...)(ref T a) {
    string[] ss = readln.split;
    foreach (i, t; T) a[i] = ss[i].to!t;
}
T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

int calc(int[] hs) {
    hs.reverse();

    int ans = 0;
    int x = 0;
    for (int i = 1; i < hs.length; i++) {
        if (hs[i-1] <= hs[i]) {
            x++;
            ans = max(ans, x);
        }
        else x = 0;
    }
    return ans;
}

void main() {
    readint;
    auto hs = readints;
    writeln(calc(hs));
}
