import std.stdio, std.string, std.array, std.conv, std.algorithm;

void main() {
    int n = readln.chomp.to!int;
    int[] h = readln.chomp.split.to!(int[]);
    int cnt, ans;
    foreach (i; 1 .. n) {
        if (h[i] <= h[i-1]) {
            ++cnt;
        } else {
            ans = max(ans, cnt);
            cnt = 0;
        }
    }
    ans = max(ans, cnt);
    ans.writeln;
}